Starting with Batch 1.15.0, the Android SDK requires AndroidX.
If you see one of the following errors:

This project uses AndroidX dependencies, but the 'android.useAndroidX' property is not enabled. Set this property to true in the gradle.properties file and retry.

or

Manifest merger failed : Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86
is also present at [com.android.support:support-compat:28.0.0]

or

error: package android.support.v7.app does not exist
import android.support.v7.app.AppCompatActivity;

 then your project doesn't use AndroidX but the legacy support libraries.

There are two ways to fix this:

If you don't use any support library, you may have to add android.useAndroidX=true in your gradle.properties  file.

Did this answer your question?