我尝试构建项目时执行失败

时间:2016-01-20 11:24:41

标签: android

错误:任务':app:dexDebug'执行失败。

  

com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:进程'命令'C:\ Program Files \ Java \ jdk1.7.0_79 \ bin \ java.exe''已完成具有非零退出值2

的build.gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

defaultConfig {
    applicationId "com.example.sharu.places"
    minSdkVersion 15
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}


dependencies {

compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.1.1'

compile 'com.google.android.gms:play-services-maps:8.4.0'

compile 'com.google.android.gms:play-services-nearby:8.4.0'

compile group: 'org.apache.httpcomponents' , name: 'httpclient-android' , version: '4.3.5.1'
compile 'com.android.support:multidex:1.0.1'

}

请帮我解决这个问题。谢谢。

1 个答案:

答案 0 :(得分:1)

这种情况经常发生。

Just"清理项目" - > "重建项目",你会很高兴。

相关问题