错误:
添加
compile ‘com.android.support:appcompat-v7:22.2.0‘后报错,里面有其它的jar包,但是只要添加这个v7包就报错。
Error:Execution failed for task ‘:YizanService4Android:dexDebug‘.
> 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 with non-zero exit value 2
解决:添加如下代码
// Enabling multidex support.multiDexEnabled true
错误:ZipException: duplicate entry: android/support/v4/view/ViewPager$SimpleOnPageChangeListener.class
解决:由于在module里面加入了v4包,将其移除,添加v7包至module
REFERENCES:http://stackoverflow.com/questions/29756188/java-finished-with-non-zero-exit-value-2-android-gradle
时间: 2024-10-09 02:02:54