Skip to main content
All CollectionsGetting startedTroubleshooting
Compilation fails after migrating to Batch 1.14.0
Compilation fails after migrating to Batch 1.14.0
Arnaud avatar
Written by Arnaud
Updated over a week ago

Starting with Batch 1.14.0, the Android SDK requires a Java 8 source level.

If you encounter the following errors:

Invoke-customs are only supported starting with Android O  (--min-api 26)

or

The dependency contains Java 8 bytecode. Please enable desugaring by adding the following to build.gradle

or

Error: Default interface methods are only supported starting with Android N (--min-api 24)

You will need to add the following to your build.gradle, to enable Java 8 support through desugaring in your project.

android {
  // ...
  compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
  }
}


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?