Migrate Android Studio projects to AndroidX

1. Add in gradle.properties file

android.useAndroidX=true

android.enableJetifier=true

2. Android Studio comes with the ability to migrate projects to Androidx (my Android Studio version is 4.2.1)

3. Modify some AndroidX library references of java classes

4. Modify the controls in the layout file (such as: RecyclerView, ViewPager, etc.)

5. Modify the version of the third-party library (such as Butterknife, mine is 8.8.1--->10.0.0)

Note: targetSdkVersion>=28, Gradle requires 4.6 or above

Guess you like

Origin blog.csdn.net/professionIT/article/details/118340022
Recommended