Android Studio 3.6.1 | Error: "This project uses AndroidX dependencies" [duplicate] Android Studio 3.6.1 | Error: "This project uses AndroidX dependencies" [duplicate] android android

Android Studio 3.6.1 | Error: "This project uses AndroidX dependencies" [duplicate]


The Android Gradle plugin provides the following global flags that youcan set in your gradle.properties file:

android.useAndroidX: When set to true, this flag indicates that youwant to start using AndroidX from now on. If the flag is absent,Android Studio behaves as if the flag were set to false.

android.enableJetifier: When set to true, this flag indicates that youwant to have tool support (from the Android Gradle plugin) toautomatically convert existing third-party libraries as if they werewritten for AndroidX. If the flag is absent, Android Studio behaves asif the flag were set to false.

To enable jetifier, add those two lines to your gradle.properties file:

android.useAndroidX=trueandroid.enableJetifier=true