All Collections
Getting Started
Troubleshooting
Compilation fails after migrating to Batch 1.15.0
Compilation fails after migrating to Batch 1.15.0
Arnaud avatar
Written by Arnaud
Updated over a week ago

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 supported library, you may have to add android.useAndroidX=true in your gradle.properties  file.


This article belongs to Batch's FAQ. Need more help? Find insightful articles, documentation, case & market studies, guides, and even more in our website's Resources section on batch.com and our blog.

Did this answer your question?