Posts

How to migrate to AndroidX

Migrate to Androidx In the Google I/O 2018, Android support libraries (all versions) are renamed to androidx. To migrate to androidx from support library, the Google has provided a Refractor tool in Android Studio. Projects can be migrated to androidx using the following step: First of update your Android Studio to version 3.2 Canary 14. After updating the Android Studio, open the project you wanted to Refractor and goto Refractor menu.   Then click 'Refractor to Androidx...' Now it will search for the usage and show the result that will be refactored. To refractor click 'Do Refractor'.   After the Refractor happens, click 'sync now' on the top right corner. After the refactor all the support library import, implementations in Gradle files, element in layout files will be renamed to androidx supporting names.   Thanks!  
Recent posts