1

I'm doing an app with RxJava2, Retrofit2, Retrolambda, etc. I have running the app well in the emulator with the latest SDK Nougat, but now I need to test on API 16, but I'm getting the next error. I'm going crazy with this.

Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: javax/annotation/Generated.class

I don't know how to debug this error.

build.gradle of project

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
        maven { url "https://jitpack.io" }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.3'
        classpath 'me.tatarka:gradle-retrolambda:3.6.1'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
        mavenCentral()
        maven { url "https://jitpack.io" }
        maven { url "http://maven.batch.com/release" }
    }
}


task clean(type: Delete) {
    delete rootProject.buildDir
}
Víctor Martín
  • 3,352
  • 7
  • 48
  • 94

0 Answers0