java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMerger
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包就報錯了
相關文章
- java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerExceptioJavaExceptionAndroidUIHive
- 【APIM】Azure APIM丟擲 java.lang.RuntimeException 錯誤定位APIJavaException
- linux 報錯 jpype._jexception.RuntimeExceptionPyRaisable: java.lang.RuntimeException: Class not foundLinuxExceptionAIJava
- Error:java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to meErrorJavaExceptionAndroidUIHive
- Android Bugs——Error:java.lang.RuntimeException: Some file crunching failed, see logs for detailsAndroidErrorJavaExceptionAI
- 解決:Exception in thread "main" java.lang.RuntimeException: don't run elasticsearch as root.ExceptionthreadAIJavaElasticsearch