In case you will reach this error update your gradle.properties with this configuration:
android.useAndroidX=false
android.enableJetifier=false
In case you will reach this error update your gradle.properties with this configuration:
android.useAndroidX=false
android.enableJetifier=false