hello i want to use androidx library but it’s not showing for me and i tried Refactor->Migrate to androidx and it didn’t work too
can i get help please..
The official documentation can be found here.
hello i want to use androidx library but it’s not showing for me and i tried Refactor->Migrate to androidx and it didn’t work too
can i get help please..
2
Answers
Make sure all those dependencies are added to your project. Then still face your problem go to the android studio file->invalid caches and restart.
https://i.stack.imgur.com/cXzGu.png
Looking at below picture: https://i.stack.imgur.com/cXzGu.png
You can’t use androidx for TextInputEditText because that widget is a property of Google material design. That means, the intellisense autocomplete dialog is showing you the exact and correct code. Check here and see the artifact mapping list of android support library to androidx or android jetpack
But before then, according to this post it reads:
The refactor command makes use of two flags. By default, both of them are set to true in your gradle.properties file:
In conclusion, if above lines of codes are not in your gradle.properties file then you can add them and sync gradle