这是gradle这个文件:执行失败的任务 ':应用程序:dexDebug'
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 22
buildToolsVersion "21.0.2"
defaultConfig {
applicationId "com.cogintus"
minSdkVersion 17
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
sourceSets.main {
jniLibs.srcDir 'src/main/jni'
jni.srcDirs = [] //disable automatic ndk-build call
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.google.gms:google-services:1.3.0-beta1'
compile 'com.google.android.gms:play-services:7.5.0'
compile 'com.google.android.gms:play-services:+'
compile 'com.android.support:support-v13:20.0.0'
compile 'com.google.apis:google-api-services-youtube:v3-rev120-1.19.0'
compile 'com.google.http-client:google-http-client-android:+'
compile 'com.google.api-client:google-api-client-android:+'
compile 'com.google.api-client:google-api-client-gson:+'
compile 'com.google.code.gson:gson:2.2.4'
}
当我调试项目,该错误总是出现:
执行失败任务':app:dexDebug' 我搜索了这个错误,我发现在依赖关系中可能会有冗余编译。 但我试图删除一些没有结果,请如果你知道如何解决这个问题,或者你确切地知道要删除什么帮助我。
我说,看来做了同样的错误: 错误:执行失败任务':app:dexDebug'。 > com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:进程'命令'C:\ Program Files \ Java \ jdk1.8.0_51 \ bin \ java.exe''已完成非零退出值2 –
您是否尝试清理和重建项目?此外,请将您的项目与gadle同步。 – DamienLevel
清理,重建和同步,但没有新的 –