:应用程序:dexDebug ExecException完成非零值2 [英] :app:dexDebug ExecException finished with non-zero exit value 2

查看:177
本文介绍了:应用程序:dexDebug ExecException完成非零值2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以帮助我下面的错误。当我清理项目不显示错误,但每次我尝试运行我得到这个消息。

Could anyone help me out with the following error. When i clean the project is show no error but everytime i try to run i get this message.

错误:未能执行任务:应用程序:dexDebug

Error:Execution failed for task ':app:dexDebug'.

com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:处理'命令'C:\ Program Files文件\的Java \ jdk1.8.0_45 \斌\ java.exe的''完成非零退出值2

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_45\bin\java.exe'' finished with non-zero exit value 2

应用程序是没有错误,但由于运行我的系统崩溃而重新启动机器人工作室,我有一些更新为Android的API 22更新的应用程序不断给我这个错误消息后。我下载JDK 8想跑,但没有奏效。后来我降级到JDK 7后,该堆栈职位,但仍然没有解决它。 <一href="http://stackoverflow.com/questions/23318109/is-it-possible-to-use-java-8-for-android-development">Is可以使用Java 8 Android开发?

The application was running with no errors but as my system crashed and restarted android studio i had few updates for Android API 22. After the update the application keep giving me this error message. I downloaded JDK 8 and tried to run but didn't work. Later i downgraded to JDK 7 after this stack post but still has not fixed it. Is it possible to use Java 8 for Android development?

我已经经历了很多类似的问题看,但没有为我工作。堆栈发现了一些类似的问题是

I have looked through numerous similar question but none works for me. Some similar issues found on stack were

<一个href="https://stackoverflow.com/questions/28957412/why-java-exe-exit-with-value-1-in-android-studio/29236320#">why java.exe的退出与价值1在Android工作室

<一个href="http://stackoverflow.com/questions/29747363/errorexecution-failed-for-task-appdexdebug-comcommand-finished-with-non">Error:Execution失败的任务:应用程序:dexDebug。 &GT; comcommand与成品非零退出值2

<一个href="http://stackoverflow.com/questions/29756188/java-finished-with-non-zero-exit-value-2-android-gradle">Java完成非零值2 - Android的摇篮

<一个href="http://stackoverflow.com/questions/29998783/java-exe-finished-with-non-zero-exit-value-2-after-upgrading-play-service">java.exe完成非零值2 - 升级发挥服务后

<一个href="http://stackoverflow.com/questions/29837352/process-command-c-program-files-java-jdk1-8-0-31-bin-java-exe-fi">Process '命令'C:\ Program Files文件\的Java \ jdk1.8.0_31 \斌\ java.exe的''与非 - 零退出值完成2

我已经通过内置,看看是否有任何冲突,但没有发现任何在摇篮依赖看了。

I have looked through dependencies in gradle built to see if there were any conflict but found none.

我甚至试图复制在code到一个新的项目并运行它,但仍然没有成功。任何人谁也面临着同样的问题,并解决它,请帮助我。

I even tried to copy the code into a new project and run it but still no success. Anyone who has faced the same issue and solved it please help me out.

推荐答案

在试图走出终于可以解决这个问题天。这个问题与我的.jar文件之一。我不得不删除每个瓶子,检查一个接一个,直到我发现了它。我删除了.jar文件和清理我的项目,并成功运行。如果任何一个人要面对类似的问题,逐个检查您的jar文件之一。

After days of trying out finally could fix the issue. The problem with one of my .jar files. I had to remove each jar and check one by one until i found it. I removed the .jar file and cleaned my project and ran successfully. If any one should face similar issue check your jar file one by one.

这篇关于:应用程序:dexDebug ExecException完成非零值2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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