【发布时间】:2016-01-25 08:35:48
【问题描述】:
我在 build.gradle 中使用了以下依赖项:
dependencies {
/*compile fileTree(dir: 'libs', include: ['*.jar'])*/
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.android.support:design:23.0.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.parse:parse-android:1.11.0'
compile 'com.parse.bolts:bolts-android:1.3.0'
compile 'com.google.android.gms:play-services:7.5.0'
compile 'com.mixpanel.android:mixpanel-android:4.6.4'
compile project(':intercom-sdk-base')
compile project(':intercom-sdk-gcm')
compile 'com.stripe:stripe-android:1.0.3'
}
我已经评论了compile fileTree(dir: 'libs', include: ['*.jar'])这一行
为了避免不匹配但仍然出现以下错误:
错误:任务 ':app:dexDebug' 执行失败> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException:进程'命令 '/usr/lib/jvm/java-7-openjdk-amd64/bin/java'' 以非零结尾 退出值 2
【问题讨论】:
-
你能发布完整的错误信息吗?
-
你可以用
compile 'com.parse:parse-android:1.12.0'代替1.11.0 -
显示错误日志并发布
build.gradle总计。 -
@user5716019 好的,你设置了
multiDexEnabled true。检查stackoverflow.com/questions/33313101/… -
是的,我现在添加了它,它现在可以工作了......谢谢
标签: android android-studio gradle error-handling