2017-10-19 83 views
0

我有一个问题,当我尝试生成与Android 2.3工作室快速运行时错误而产生的apk

我得到一个错误的APK:

Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: org/antlr/v4/runtime/ANTLRErrorListener.class

据我所知,我的一些依赖必须实现相同的方法,但我不能找出哪一个,

这里是我的依赖

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 
     exclude group: 'com.android.support', module: 'support-annotations' 
    }) 

    compile 'com.android.support:multidex:1.0.1' 
    compile 'com.android.support:appcompat-v7:25.3.1' 
    compile 'com.android.support:design:25.3.1' 
    compile 'com.graphql-java:graphql-java:2016-10-19T14-40-14' 
    compile 'junit:junit:4.12' 
    compile 'com.google.android.gms:play-services-appindexing:9.8.0' 
    compile 'com.android.volley:volley:1.0.0' 
    compile 'com.android.support:support-v4:25.3.1' 
    compile 'com.android.support.constraint:constraint-layout:1.0.2' 
    compile 'org.altbeacon:android-beacon-library:2.12.2' 
    compile 'io.fotoapparat.fotoapparat:library:1.4.1' 
    testCompile 'junit:junit:4.12' 
} 

谢谢

+0

执行'gradlew app:dependencies --configuration releaseCompileClasspath'并在此输出。另请检查,您是否使用'class App extends MultiDexApplication' – DeKaNszn

+1

[Error:执行失败的任务':app:transformClassesWithJarMergingForDebug'](https://stackoverflow.com/questions/33209631/errorexecution-failed-for-task -apptransformclasseswithjarmergingfordebug) –

回答

相关问题