java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMerger

Name is Q發表於2018-09-04

 

Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\Java\JDK\bin\java.exe'' finished with non-zero exit value 2

原因:重複引用了同一個包

比如:在一個工程內引用了

libs/ZXing-core-3.2.1.jar

Moudle引用了該工程,而專案本身又引用了Zxing包就報錯了