purva purva - 5 months ago 61
Android Question

android gradle build error?

Error:Execution failed for task ':app:transformClassesWithDexForDebug'.


com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_79\bin\java.exe'' finished with non-zero exit value 3
Information:BUILD FAILED
Information:Total time: 1 mins 34.319 secs
Information:1 error
Information:0 warnings
Information:See complete output in console

Answer

In Your App Build.gradle

android {
    compileSdkVersion 24
    buildToolsVersion "23.0.3"

    defaultConfig {
        applicationId "at.navigationdrawer"
        minSdkVersion 11
        targetSdkVersion 24
        versionCode 1
        versionName "1.0"



        multiDexEnabled true

    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

Just Add multiDexEnabled true no need more code to solve this problem