我正在使用RxJava2,Retrofit2,Retrolambda等进行应用程序。我已经在模拟器中使用最新的SDK Nougat运行应用程序,但现在我需要在API 16上进行测试,但是我'我得到了下一个错误。我对此感到很疯狂。
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: javax/annotation/Generated.class
我不知道如何调试此错误。
项目的build.gradle
//顶级构建文件,您可以在其中添加所有子项目/模块共有的配置选项。
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
}