CodePudding user response:
You can add below lines into your gradle. The properties file:
Android. UseAndroidX=true
Android. EnableJetifier=true
Details:
If you want to use androidx - namespaced libraries in a new project, you need to set the compile the SDK to Android 9.0 (API level 28) or who the and set to both of the mentioned Android Gradle plugin flags to true.
Android. UseAndroidX: When this flag is set to true, the android plugin USES the appropriate AndroidX library home a Support if the flag is false by default if it is not specified.
Android. EnableJetifier: When this flag is set to true, the android plugin automatically migrates existing third - party libraries to use AndroidX dependencies by rewriting their binaries. The flag is false by default if it is not specified.
CodePudding user response:
Androidx and support a mixture