4

My project is multidex, but i faced this error for first run and it dissapears for second run.

Uncaught translation error: com.android.dx.cf.code.SimException: local variable type mismatch: attempt to set or access a value of type java.lang.String[] using a local variable of type android.os.Bundle. This is symptomatic of .class transformation tools that ignore local variable information.
Uncaught translation error: com.android.dx.cf.code.SimException: local variable type mismatch: attempt to set or access a value of type java.io.InputStream using a local variable of type java.lang.String[]. This is symptomatic of .class transformation tools that ignore local variable information.
Uncaught translation error: com.android.dx.cf.code.SimException: local variable type mismatch: attempt to set or access a value of type java.io.InputStream using a local variable of type java.lang.String[]. This is symptomatic of .class transformation tools that ignore local variable information.
Uncaught translation error: com.android.dx.cf.code.SimException: local variable type mismatch: attempt to set or access a value of type java.lang.Object using a local variable of type boolean. This is symptomatic of .class transformation tools that ignore local variable information.
4 errors; aborting
Error:Execution failed for task ':app:transformClassesWithDexForCbuConfDevDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1

My gradle looks like below. I already did multidex development.

defaultConfig {
    minSdkVersion 10
    targetSdkVersion 23
    versionCode 33
    versionName "2.3"

    multiDexEnabled true
}

dexOptions {
    preDexLibraries = false
    javaMaxHeapSize "4g"
}
buildTypes {
    release {
        minifyEnabled true
        proguardFiles 'proguard-rules.pro'
    }
    debug {
        minifyEnabled false
    }
}

dependencies{
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'com.android.support:support-v4:23.1.1'
    compile 'com.android.support:design:23.1.1'
    compile 'com.android.support:multidex:1.0.+'
}
OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
Alican Temel
  • 1,318
  • 13
  • 13

0 Answers0