If you want to use AndroidX libraries in a project, you need to set the compile SDK to Android 9.0 (API level 28) or higher and set both of the following Android Gradle plugin flags to true in your
gradle.properties file.
android.useAndroidX: When this flag is set to true, the Android plugin uses the appropriate
AndroidX library instead of a Support Library. 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 spe
AndroidX is an open source project that the team at Android Google uses to develop, test, package, version, and release libraries in
Jetpack.