Vavelin Kévin Vavelin Kévin - 1 year ago 154
Java Question

Impossible to run app with Parse

I have an issue with Parse. I had the sdk (downloaded on and unzip inside /libs folder in my project) and when I build everything is good.

But when I run the app,I have this following error :

Error:Execution failed for task ':app:transformClassesWithDexForDebug'. org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_66\bin\java.exe'' finished with non-zero exit value 2

I don't know what to do, I search and tried everything I found on StackOverflow and github repo of Parse but nothing works :/

Any idea ?

Thanks in advance for your answer.

Answer Source

Simple in your gradle file add these ...

android {
compileSdkVersion 23
buildToolsVersion "23.0.2"

defaultConfig {

    minSdkVersion 14
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"

    // Enabling multidex support.
    multiDexEnabled true


 // add dexOptions
dexOptions {
    incremental true
    javaMaxHeapSize "4g"

dependencies {
provided fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile ''
compile ''
compile ''
compile 'com.parse:parse-android:1.11.0'
 // add multidex dependency 
compile ''


reference: Error:Execution failed for task ':app:dexDebug' error in my project while I added new dependency