Using Proguard with Android without obfuscation

前端 未结 2 1997
说谎
说谎 2020-12-14 01:13

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

相关标签:
2条回答
  • 2020-12-14 01:29

    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).

    0 讨论(0)
  • 2020-12-14 01:31

    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
    
    0 讨论(0)
提交回复
热议问题