码迷,mamicode.com
首页 > 其他好文 > 详细

finished with non-zero exit 添加v7包报错的问题

时间:2015-06-19 15:15:28      阅读:236      评论:0      收藏:0      [点我收藏+]

标签:

错误:

添加

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

 

finished with non-zero exit 添加v7包报错的问题

标签:

原文地址:http://www.cnblogs.com/anee/p/4588518.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!