错误:执行失败:完成非零退出值2

时间:2016-03-12 19:01:42

标签: android gradle

我有一个非常好的项目,但添加后:

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

这个错误apearese:

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_25\bin\java.exe'' finished with non-zero exit value 2

我将sdk更新为1.8.0.25,但此错误未解决。我该如何解决?

我的傻瓜:

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:support-v4:23.1.+'
compile 'net.hockeyapp.android:HockeySDK:3.6.+'
compile 'com.googlecode.mp4parser:isoparser:1.0.+'
compile "com.google.android.gms:play-services-gcm:8.4.0"
compile "com.google.android.gms:play-services-maps:8.4.0"

compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:design:23.1.1'
compile 'com.android.support:cardview-v7:23.1.0'
compile 'com.android.support:recyclerview-v7:23.0.1'
compile 'com.github.bumptech.glide:glide:+'
compile 'com.nineoldandroids:library:2.4.+'
compile 'com.koushikdutta.ion:ion:2.+'
compile 'de.greenrobot:eventbus:2.4.0'
compile 'com.github.dmytrodanylyk.circular-progress-button:library:1.1.3'
compile 'com.theartofdev.edmodo:android-image-cropper:1.0.+'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.squareup.okhttp:okhttp-urlconnection:2.5.0'
compile 'com.github.rahatarmanahmed:circularprogressview:2.4.0'
compile 'com.makeramen:roundedimageview:2.1.2'
}

android {
compileSdkVersion 23
buildToolsVersion '23.0.2'

useLibrary 'org.apache.http.legacy'

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_7
    targetCompatibility JavaVersion.VERSION_1_7
}

0 个答案:

没有答案