一、问题描述
今天在编写代码过程中,引入了一个组内新的封装库,导致编译冲突。如下所示:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':demo:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 8s
51 actionable tasks: 13 executed, 38 up-to-date
点击 【Run with --stacktrace】 ,重新编译查看详细信息,如下:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':demo:transformDexArchiveWithExt