finished with non-zero exit 添加v7包報錯的問題

錯誤:java

添加android

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 2app

 

解決:添加以下代碼ide

// Enabling multidex support.
multiDexEnabled true

 

錯誤:ZipException: duplicate entry: android/support/v4/view/ViewPager$SimpleOnPageChangeListener.classgradle

 

解決:因爲在module裏面加入了v4包,將其移除,添加v7包至moduleip

 

REFERENCES:http://stackoverflow.com/questions/29756188/java-finished-with-non-zero-exit-value-2-android-gradleit

相關文章
相關標籤/搜索