how to Set android.useAndroidX property to true in the gradle.properties file and retry. code example
Example: This project uses AndroidX dependencies, but the 'android.useAndroidX' property is not enabled.
android.useAndroidX=true
android.enableJetifier=true