I'm trying to obfuscate an Android App with ProGuard.
Here I have a class
public class Book implements DBbinded
And a generic method
private void storeDBObjects(ArrayList<? extends DBbinded> dbObjects)
The call of this method throws an java.lang.ClassCastException: java.util.LinkedHashMap after obfuscation. What should I write into proguard.properties to fix this?
I have just come across this problem and resolved it by specifying the 'Signature' attribute under the -keepattributes
ProGuard argument.
-keepattributes SourceFile,LineNumberTable,Signature,*Annotation*
I do not believe it is a ProGuard bug. Hope that helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With