关于Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.编译错误
来源:互联网 发布:质量矩阵模版 编辑:程序博客网 时间:2024/05/21 10:41
开发环境: Android studio
gradle编译失败,问题如下:
Error:Execution failed for task ‘:funboxlauncher:transformClassesWithDexForDebug’.
com.android.build.api.transform.TransformException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘C:\Program Files\Java\jdk1.7.0_79\bin\java.exe” finished with non-zero exit value 3
这个问题是因为Multidex引起的,解决方式如下:
1、在 build.gradle中,添加如下命令:
// Enabling multidex support. multiDexEnabled true
dependencies { compile 'com.android.support:multidex:1.0.0'}
2、Application要继承android.support.multidex.MultiDexApplication
3、在你的 manifest 文件中:
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.android.multidex.myapplication"> <application ... android:name="你的Application"> ... </application></manifest>
更多资料,参考:
http://stackoverflow.com/questions/33717886/errorexecution-failed-for-task-apptransformclasseswithdexfordebug
- 关于Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.编译错误
- 13. 编译出错 Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
- Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'
- Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'
- Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
- Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'
- Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'
- Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
- 解决Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
- 解决Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
- 解决Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
- AndroidStudio报错 Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
- AndroidStudio报错 Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
- 记录一下,解决Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
- 解决Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'问题
- 解决Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
- 解决Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'问题
- 关于android Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. > com.的解决方法
- 设计模式——桥接模式 Bridge
- C实现:查找指定日期的前一天
- js封装
- 【codevs 1001】 【bzoj1050】舒适的路线
- 互斥
- 关于Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.编译错误
- Swift 必备开发库 (高级篇)
- Spring Security hello world example
- 网络相关的链接
- 前端小练习
- iOS 编译包含 bitcode 的 opencore-amr-iOS 静态库
- Dubbo入门介绍
- Visual Studio 2015编译64位MySQL Connector/C++
- IOS、Android进阶之ReactNative热更新