执行失败的任务“:应用程序:dexDebug”。 com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException [英] Execution failed for task ':app:dexDebug'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException

查看:109
本文介绍了执行失败的任务“:应用程序:dexDebug”。 com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立我的Andr​​oid项目时,我在我的项目有进口docx4j库后,这个错误。我应该怎么做才能摆脱这种异常。

  

错误:未能执行任务:应用程序:dexDebug。 > com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:处理'命令'的/ usr /非成品的lib / JVM / Java的7-的OpenJDK,AMD64 /斌/ Java的' - 零出口值2

解决方案

我已经得到了同样的错误。但是,我从build.gradle添加以下缺失的行相关性解决了问题。 编译com.parse.bolts:螺栓-机器人:1 +

 添加此行之后,我的身体的依赖关系是这样的:
依赖{
编译文件树(导演:库,包括:['的* .jar'])
编译com.android.support:appcompat-v7:22.0.0
编译com.parse.bolts:螺栓,机器人:1 +'
编译文件树(导演:库,包括:解析 -  *罐子)
编译文件树(导演:库,包括:公共-IO-2.4.jar)}
 

您可以与您匹配过,看看它是否能帮助你太

I am building my android project when i got this error after import docx4j library in my project. What should i do to get rid of this exception.

Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-7-openjdk-amd64/bin/java'' finished with non-zero exit value 2

解决方案

I had got the same error. But I resolved the issue by adding the following missing line from build.gradle in dependencies. compile 'com.parse.bolts:bolts-android:1.+'

After adding this line, my dependencies body was like this:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.0.0'
compile 'com.parse.bolts:bolts-android:1.+'
compile fileTree(dir: 'libs', include: 'Parse-*.jar')
compile fileTree(dir: 'libs', include: "commons-io-2.4.jar")  }

You can match with yours too and see if it can help you too

这篇关于执行失败的任务“:应用程序:dexDebug”。 com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆