Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDex报错
来源:互联网 发布:三网合一网站源码 编辑:程序博客网 时间:2024/06/05 06:42
原来的项目可以正常运行的,但升级到AndroidStudio 3.0后就有问题了。APP在Clear时没有报错,但一安装到手机上就报错了。
Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
上网找了很多方法都不行(而新建的项目却可以调试),最后只好新建一个项目,将旧项目的代码转移过去了。新项目可以安装了,也没有报错了,最后新旧项目对比后才发现不同点在于:旧项目在AS升级时build.gradle中的classpath变成3.0.0了
dependencies { classpath 'com.android.tools.build:gradle:3.0.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files}最后将旧项目的classpath改为原来的
classpath 'com.android.tools.build:gradle:2.3.1'
就正常了。
阅读全文
0 0
- Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDex报错
- Android报错Error:Execution failed for task ':app:mergeDebugResources'.
- Error:Execution failed for task ':app:mergeDebugResources'. 报错
- AndroidStudio报错 Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
- AndroidStudio报错 Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
- AndroidStudio报错 Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
- AndroiStudio Error:Execution failed for task ':app:process_360DebugManifest 报错
- 运行报错Error:Execution failed for task ':app:transformClassesWithDexForDebug'
- 终极报错解决方案:Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with
- 导SDK报错:Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with mu
- 编译报错Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with mul
- 终极报错解决方案:Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with
- Android Studio 下打包混淆apk报错:Error:Execution failed for task ':app:proguardRelease'
- Android Studio 报错 Error:Execution failed for task ':app:dexDebug'。support-v7 Theme.AppCompat.Light
- 解决 Android 编译报错:Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
- android studio 报错Error:Execution failed for task ':app:packageRelease'. 解决方法
- Android 编译报错:Error:Execution failed for task ':app:transformClassesWithDexForDebug'
- 安卓中运行报错Error:Execution failed for task ':app:transformClassesWithDexForDebug'解决
- 什么是架构师和如何成为一个架构师
- Essential Qt 第十五章 绘图事件
- Cookie&Session会话技术&Servlet三个作用域总结
- redis的配置
- CRT detected that the application wrote to memory after end of heap buffer
- Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDex报错
- 理解了自己的工作
- jsp服务端页面技术
- 实现RTSP摄像机进行网页直播和微信直播的技术方案:EasyNVR更新方法
- test_iter TRAIN_ batch_size TEST_ batch_size
- 请求和响应response&request
- freemarker添加新闻和查询新闻的小案例
- 4种mysql存储引擎比较详解
- 小狗的状态