Android Uncaught翻译错误:com.android.dx.cf.code.SimException:局部变量类型不匹配

时间:2016-05-24 09:35:22

标签: java android gradle

我的项目是multidex,但是我在第一次运行时遇到了这个错误,第二次运行时它就消失了。

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

我的gradle看起来如下。我已经进行了多指标开发。

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.+'
}

0 个答案:

没有答案