'How to revert to a previous version of kotling plugin in android studio?

Recently I updated a kotlin plugin version in Android Studio and I get error : "Unresolved reference: synthetic ", Actually Im migrating to binding the app, so I have some parts with xml and binding, some parts with just synthetic, and some parts with compose, What Can I do?



Solution 1:[1]

The main limitation here is on the API side. Your API should supply you with the similar names. If it doesn't, then you can't do much.

Solution 2:[2]

Maybe the API provides a way to retrieve users with partial names (but I doubt it would be the case). Otherwise, you can retrieve all users once,and simply display the one that fits your requirements, every time you write something.

To sum up: When your component is mounted (at the beginning), fetch all users, and store them. You will perform this API call only once.

Then, every time you write something, just take the 10 users that have a name that include what you wrote.

Solution 3:[3]

Ideally, this should be handled by the API, and you should be concerned about when to trigger or re-trigger the API call.

API gets you a list of names, you slice a set of 10 from the list of names and set it in users, and then simply map them in your UI.

Also, you could maybe further optimise the function debouncing the API call.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Aria
Solution 2
Solution 3 Sbagaria2710