Compile with Proguard gives SimException: “local variable type mismatch”

I ran into the same problem after adding the -dontobfuscate flag to my proguard.cfg file. The solution ended up being that I needed to add this to my optimizations: !code/allocation/variable This makes my complete optimization string look like this: -optimizations !field/removal/writeonly,!field/marking/private,!class/merging/*,!code/allocation/variable

Proguard issue “Warning:Ignoring InnerClasses attribute for an anonymous inner class”

Try adding -keepattributes InnerClasses -dontoptimize to the ProGuard config. That should fix the problem. It’s probable that incompatible optimizations are applied (that probably causes the last line of the error log). If you want to allow optimizations, it’s necessary to fine tune optimizations config with -optimizations optimization_filter option in ProGuard config.