每次我在Gradle依赖项中添加Android Material Design Library时,都会收到此错误 错误:任务':app:dexDebug'执行失败。
com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:处理'命令'/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/bin/java ''完成了非零退出值2
当我添加Multidex支持时,我得到了
非零退出值3
这是我的gradle文件
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.myex.exam"
minSdkVersion 9
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets { main { assets.srcDirs = ['src/main/assets', 'src/main/assets/'] } }
}
dependencies {
provided fileTree(dir: 'libs', include: ['*.jar'])
compile'com.android.support:appcompat-v7:23.0.1'
compile 'com.google.android.gms:play-services:7.8.0'
compile 'com.android.support:recyclerview-v7:21+'
compile 'com.android.support:design:23.0.1'
compile files('src/main/libs/jackson-all-1.9.11.jar')
compile files('src/main/libs/picasso-2.5.2.jar')
}
答案 0 :(得分:0)
typedef