无法理解和解决有关java.exe返回值2

时间:2016-01-11 19:25:02

标签: java android android-studio

  

错误:任务执行失败   ':应用程序:transformClassesWithDexForDebug&#39 ;. >   com.android.build.api.transform.TransformException:   com.android.ide.common.process.ProcessException:   org.gradle.process.internal.ExecException:进程'命令   ' C:\ Program Files \ Java \ jdk1.8.0_51 \ bin \ java.exe''完成了   非零退出值2 **

我的build.gradle:

apply plugin: 'com.android.application'
android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    repositories {
        mavenCentral()
    }
    defaultConfig {
        applicationId "com.example.user.fbloginsample"
        minSdkVersion 19
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            multiDexEnabled true

            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'com.facebook.android:facebook-android-sdk:4.7.0'
    compile 'com.android.support:support-v4:23.1.1'
    compile 'com.android.support:multidex:1.0.1'        
}

我也在这篇SO帖子中尝试了答案,但它对我没有用处: Java.exe finished with non-zero exit value 2 in Android Studio

0 个答案:

没有答案