mardi 5 juillet 2016

Getting Error: Execution failed for task app:transformClassesWithMultidexlistForDebug

i've tried nearly everything at other topics but i have the same problem in my rss reader app. How can i fix it?

i'm getting this error:

Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'. com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:Program FilesJavajdk1.7.0_79binjava.exe'' finished with non-zero exit value 1

i've updated AS to 2.12, java sdk latest version.

i've disabled instant run

i've tried cleanup project

i've installed HAXM

In my app build.gradle file:

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

dexOptions {
    incremental = true;
    preDexLibraries = false
    javaMaxHeapSize "4g"
}


defaultConfig {
    multiDexEnabled true
    applicationId "com.vbo.xxx"
    minSdkVersion 15
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
    multiDexEnabled true

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

compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.android.support:multidex:1.0.1'}

Aucun commentaire:

Enregistrer un commentaire