Search code examples
androidproguarddexguardflexjson

Flexjson and Dexguard/Proguard


I am having issues using dexguard when it comes to flexjson library. I keep getting the following error when trying to deserialize using JSONDeserializer.

 **09-15 20:46:10.271 10901-11552/** **A/art: sart/runtime/class_linker.cc:3430] Check failed: klass->IsProxyClass()** 

Does anyone have the proper rules for flexjson to work properly after obfuscation in android release apks?

Something similar to gson lib.


Solution

  • Chances are that this is on a Samsung device -- a few device models and Android versions have problems with some UTF-8 encoded unicode characters. You should try updating DexGuard to the latest version. Otherwise, you can also try working around it by using a simple obfuscation dictionary:

    -classobfuscationdictionary empty.txt
    

    where empty.txt is an empty file.