I am getting an error \"Conversion to Dalvik format failed with error 1\" when using the -dontobfuscate flag. Otherwise my app exports fine. I don\'t want to obfuscate becau
You should make sure that you are using the latest version of the Android SDK or at least the latest version of ProGuard (version 4.7 at this time of writing) inside the SDK (android-sdk/tools/proguard/lib/proguard.jar).
Add !code/allocation/variable
is workaround for ProGuard bug when -dontobfuscate
is set to your -optimizations
For example
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*,!code/allocation/variable