码迷,mamicode.com
首页 > 移动开发 > 详细

Error:Execution failed for task ':app:transformClassesWithDexForDebug&#

时间:2016-04-29 14:44:14      阅读:1173      评论:0      收藏:0      [点我收藏+]

标签:

3个错误non-zero exit value 1; non-zero exit value 2; non-zero exit value 3

 

Error:Execution failed for task ‘:app:transformClassesWithDexForDebug‘.

> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘F:\Program Files (x86)\Java\jdk1.8.0_31\bin\java.exe‘‘ finished with non-zero exit value 1

 

这个是因为依赖包重复了 ,如图。app中实现了对easeUI的依赖,但是app和easeUI都添加了对这个包的依赖。所以就报这个错误,修改之后再报,就clean,rebuild一下

技术分享技术分享

 

Error:Execution failed for task ‘:app:transformClassesWithDexForDebug‘.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘F:\Program Files (x86)\Java\jdk1.8.0_31\bin\java.exe‘‘ finished withnon-zero exit value 2

 

这个错误是注释掉app中的v4包之后出现的。解决方法 clean ,rebuild一下工程,就解决了。要是还解决不了,就重启一下。

 

Error:Execution failed for task ‘:app:transformClassesWithDexForDebug‘.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘F:\Program Files (x86)\Java\jdk1.8.0_31\bin\java.exe‘‘ finished withnon-zero exit value 3

 

这个错误就在app.bulid里面加上这句,再rebuild ,之后再运行就行了。4g可以看电脑配置修改(2g,3g,6g,8g)。

 

dexOptions {
    javaMaxHeapSize "4g"
}

如图:

 

技术分享

Error:Execution failed for task ':app:transformClassesWithDexForDebug&#

标签:

原文地址:http://www.cnblogs.com/zhujiabin/p/5446027.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!