Using Proguard with Android without obfuscation

前端 未结 2 2008
说谎
说谎 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: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
    

提交回复
热议问题