I have a project with several Build Variantsfor the first build of Android Studio (with jdk 1.8 or 1.7, it does not matter) that it does not cope with the following errors, but the strange part for the second run works, is deeply annoying and takes a lot of time:
: application: transformClassesWithDexForBuildVariantDebug
uncaught conversion 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 a symptom of .class conversion tools that ignore local variable information.
Uncaught conversion 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 a symptom of .class conversion tools that ignore local variable information.
Uncaught conversion 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 a symptom of .class conversion tools that ignore local variable information.
Uncaught conversion 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 a symptom of .class conversion tools that ignore local variable information.
4 errors; interrupt
Error: execution completed for task ': app: transformClassesWithDexForBuildVariantDebug'. 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 / Main / bin / java '' terminated with nonzero output value 1
Thank.
source
share