conversion to dalvik format failed with error 1
引用:http://mingkg21.iteye.com/blog/1182755
出现conversion to dalvik format failed with error 1有好几种情况
1、打包APK时混淆代码,是android sdk tools r12和R13版本的问题。
解决的方法:
找到 【Android的SDK目录】\tools\proguard\bin\proguard.bat
把
- call %java_exe% -jar "%PROGUARD_HOME%"\lib\proguard.jar %*
改成
- call %java_exe% -jar "%PROGUARD_HOME%"\lib\proguard.jar %1 %2 %3 %4 %5 %6 %7 %8 %9
2、调入混淆过的JAR包,
- 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 int. This is symptomatic of .class transformation tools that ignore local variable information.
出现这个问题是Proguard的BUG
解决方法:混淆是不要设置-keepattributes LocalVariableTable,LocalVariableTypeTable