我检查并尝试了这里的每一个答案,但它仍然不适合我。当我在依赖项中添加了ibm cloudant lib时,我收到了这个错误。在那之前一切都很好。有什么问题?有人帮帮我吗?
错误:
Error:Execution failed for task ':dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files (x86)\Java\jdk1.8.0_25\bin\java.exe'' finished with non-zero exit value 2
我的build.gradle:
configurations {
all*.exclude group: 'com.android.support', module: 'support-v4'
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.2.3'
}
}
apply plugin: 'com.android.application'
repositories {
mavenLocal()
maven { url "http://cloudant.github.io/cloudant-sync-eap/repository" }
mavenCentral()
}
dependencies {
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.android.support:support-v4:22.2.1'
compile 'com.google.android.gms:play-services:7.5.0'
compile 'com.oguzbabaoglu:fancymarkers:0.2'
compile 'com.cardiomood.android:android-widgets:0.1.1'
compile group: 'com.cloudant', name: 'cloudant-sync-datastore-core', version:'0.13.1'
compile group: 'com.cloudant', name: 'cloudant-sync-datastore-android', version:'0.13.1'
compile group: 'com.cloudant', name: 'cloudant-sync-datastore-android-encryption', version:'0.13.1'
compile group: 'com.cloudant', name: 'cloudant-sync-datastore-javase', version:'0.13.1'
}
android {
compileSdkVersion 22
buildToolsVersion "19.1.0"
defaultConfig {
minSdkVersion 15
targetSdkVersion 22
}
}
答案 0 :(得分:0)
尝试添加
defaultConfig {
multiDexEnabled true
}
你的xml中的