Error in gradle build: "java.exe finished with non-zero exit value 2"

1

I'm having this error in my Android Studio, this happens when I run an application that I'm developing. Does anyone know what it can be?

Followmybuild.gradle:

applyplugin:'com.android.application'android{compileSdkVersion23buildToolsVersion"23.0.2"

    defaultConfig {
        applicationId "android.com.br.apptoner"
        minSdkVersion 16
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            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.2.1'
    compile 'com.android.support:design:23.2.1'
    compile files('libs/gson-2.3.1.jar')
    compile files('libs/retrofit-2.0.0.jar')
    compile 'com.squareup.retrofit2:retrofit:2.0.0'
    compile 'com.squareup.retrofit2:converter-gson:2.0.0'



    compile 'com.google.android.gms:play-services-appindexing:8.1.0'
}
    
asked by anonymous 28.03.2016 / 06:03

1 answer

0

Friend I have an app already in use in the play store and I use this build.gradle apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.3"

    defaultConfig {
        applicationId "naovemaocaso.com.br
        minSdkVersion 9
        targetSdkVersion 23
        versionCode 12
        versionName "2.0"

        //para atualizar a versao do app  basta mudar o version code
        //version name não precisa alterar   mas e ele que e exibido na play store
    }
    buildTypes {
        release {
            minifyEnabled false
            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.2.1'
    compile 'com.android.support:design:23.2.1'
    compile 'com.google.code.gson:gson:2.2.4'
    compile 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
    compile files('libs/GraphView-4.0.1.jar')
}

this last compile and to generate graphs in android ...
I hope I have helped

    
18.05.2016 / 19:21