Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
程序员文章站
2022-06-05 14:20:05
...
问题说明:
在执行make project或者rebuild project时报如下问题:
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
build-》rebuild project
执行这两部操作有可能解决,还不行
2.修改配置文件
android {
defaultConfig {
...
minSdkVersion 15
targetSdkVersion 26
multiDexEnabled true
}
...
}
dependencies {
compile 'com.android.support:multidex:1.0.1'
}
推荐阅读
-
Execution failed for task ':app:preDebugAndroidTestBuild问题解决
-
Android解决app:compileDebugJavaWithJavac>Compilation failed; see the compiler error output for details问题的方法
-
ANDROID打包错误ERROR:EXECUTION FAILED FOR TASK ′:APP:LINTVITALRELEASE′.
-
关于android studio打开后自动弹出:Error:Execution failed for task ':app:preDebugAndroidTestBuild'
-
Error:Execution failed for task ':app:processDebugManifest'.
-
异常Error:Execution failed for task ':app:preDebugAndroidTestBuild'解决方法
-
Android Studio NDK开发时报Execution failed for task ':xxxx项目:transformNativeLibsWithStripDebugSymbol 错误的解决办法
-
Execution failed for task ‘:app:checkDebugDuplicateClasses‘解决方案
-
hive程序报FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask
-
Error:Execution failed for task ':app:kaptDebugKotlin'