java Android未捕获翻译错误:com。安卓dx。参考代码。SimException:局部变量类型不匹配
我的项目是multidex,但第一次运行时我遇到了这个错误,第二次运行时它就消失了
Uncaught translation error: com.安卓.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 安卓.os.Bundle. This is symptomatic of .class transformation tools that ignore local variable information.
Uncaught translation error: com.安卓.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.安卓.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.安卓.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.安卓.build.api.transform.TransformException: com.安卓.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.安卓.support:appcompat-v7:23.1.1'
compile 'com.安卓.support:support-v4:23.1.1'
compile 'com.安卓.support:design:23.1.1'
compile 'com.安卓.support:multidex:1.0.+'
}
共 (0) 个答案