Converting existing android support to androidX
Update your android studio
https://developer.android.com/studio
Set compileSdkVersion to 28
Set com.android.tools.build:gradle:3.2.0 in build.grade(project:X) in dependencies to min 3.2
Go to Refactor-> Migrate to androidX
Try this
With Android Studio 3.2 and higher, you can quickly migrate an existing project to use AndroidX by selecting Refactor > Migrate to AndroidX from the menu bar.
If you have any Maven dependencies that have not been migrated to the AndroidX namespace, the Android Studio build system also migrates those dependencies for you when you set the following two flags to true in your gradle.properties file:
android.useAndroidX=true
android.enableJetifier=true
For Reference