2 doubletwo21 doubletwo21 于 2016.05.10 19:45 提问

finished with non-zero exit value 2头疼 3C

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

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException:
Process 'command 'D:\Java\jdk1.7.0_80\bin\java.exe'' finished with non-zero exit value 2
在网上查了,好多人说是jar包重复,但是在logcat里也不打印是哪个jar包的信息重复。。。头疼。。。
项目里v4包和v7包:
compile 'com.android.support:support-v4:23.0.0'
compile 'com.android.support:appcompat-v7:23.0.0'

 有两个问题,
 1.这里有个v7包,但是我依赖的项目里也有个v7包,两个版本不一样,但是我删除了本项目里的v7和统一了两个v7,都不行,
 2.这个项目依赖了两个库工程,例如C项目依赖了A和B,但是同时A又依赖了B项目。然后在C项目里再写依赖关系的时候需不需要把A和B都依赖进来?

2个回答

CSDNXIAOS
CSDNXIAOS   2016.05.10 19:52

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

> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\softing\Java\jdk......
答案就在这里:(4.5.3.4)finished with non-zero exit value 2
----------------------Hi,地球人,我是问答机器人小S,上面的内容就是我狂拽酷炫叼炸天的答案,除了赞同,你还有别的选择吗?

doubletwo21
doubletwo21   2016.05.11 09:19

图片说明
这种情况怎么办?那个方法试了,但是没起作用

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!
其他相关推荐
干掉头疼的finished with non-zero exit value 2
很多次会出现 finished with non-zero exit value 2  . Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'c
AndroidStudio使用备忘:报错finished with non-zero exit value 2
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':***:dexDebug'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecExcepti
finished with non-zero exit value 42的解决办法
最近做项目遇到一个问题:从eclipse下载的demo,把.9图片放到drawable文件夹下作为button的样式。项目编译没有错误,但是运行后就报错:finished with non-zero exit value 42
【Android】finished with non-zero exit value 2
Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files define Lcom/ Error:Execution failed for task ':app: finished with non-zero exit value 2
关于finished with non-zero exit value 1、2、3的bug解决总结
在最近的一个项目中碰到好几次finished with non-zero exit value 1、finished with non-zero exit value 2、finished with non-zero exit value 3这种莫名其妙的bug导致程序编译不过去。现在闲下来了总结一下解决办法: finished with non-zero exit value 2:出现这种bu
android studio finished with non-zero exit value 1, value 2解决办法
解决androidstudio中出现finished with non-zero exit value 1,或者finished with non-zero exit value 2的问题
finished with non-zero exit value 3,gradle编译异常小结
转载自:http://www.jacpy.com/2016/04/22/android-studio-error-collection.html 在使用android studio过程中,使用gradle编译的时候总会出现一些问题,下面是几个常见问题的解决方法。 被编译的代码或资源有问题( finished with non-zero exit value 1):出现这种编译异常表现是 exit
Android Studio 运行时出现 finished with non-zero exit value 2 错误分析
错误日志: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/bin/java'' finished
finished with non-zero exit value 2问题的常用解决方案
由于开发小组中有人用的是Eclipse,有人用的是Android Studio,在使用svn版本控制的时候不是很方便,我用Android Studio下载别人的Eclipse项目的时候最容易出现的问题是:Error:Execution failed for task ':dexDebug'. > com.android.ide.common.process.ProcessException:
Win7*64+androidstudio ndk-build.cmd finished with non-zero exit value 1 问题原因
【jni】Win7*64+androidstudio ndk-build.cmd finished with non-zero exit value 1 问题原因AndroidStudio运行JNI项目,报错如下错误: Error:Execution failed for task ‘:project:compileDebugNdk’. com.android.ide.common.proce