DexArchiveMergerException: Unable to merge dex
Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
原因:工程里面的jar包和导入依赖的包有重复引用导致的
解决方案:把不需要的导入依赖项删除掉就可以了