Android Studio 3.0报错DexArchiveMergerException: Unable to merge dex

时间:2022-06-01 20:39:49

Android Studio 2.3升级到Android Studio 3.0,构建项目报错:

Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex

清理项目重新构建可以解决

  1. Build -> Clean Project
  2. Build -> Rebuild Project