finished with non-zero exit value 2


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

> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\softing\Java\jdk1.7.0_67\bin\java.exe'' finished with non-zero exit value 2

===

出现这个是编译的时候出现重复的jar包导致的。

==

因为在主工程里面有support-v4.jar,而子工程里面也有,因此我在编译的时候,把主工程不进行编译。 

dependencies {      compile fileTree(dir: 'libs', include: '*.jar', exclude: 'android-support-v4.jar')    }


你可能感兴趣的:(finished with non-zero exit value 2)