Flexjson和Dexguard/Proguard [英] Flexjson and Dexguard/Proguard

查看:131
本文介绍了Flexjson和Dexguard/Proguard的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于flexjson库,我在使用dexguard时遇到问题.尝试使用JSONDeserializer反序列化时,我不断收到以下错误.

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()** 

在Android版本的apks中进行混淆后,是否有人有适当的规则让flexjson正常工作?

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

类似于gson lib的东西.

Something similar to gson lib.

推荐答案

可能是这是在Samsung设备上-某些设备型号和Android版本在某些UTF-8编码的Unicode字符上存在问题.您应该尝试将DexGuard更新到最新版本.否则,您也可以尝试使用简单的混淆字典来解决该问题:

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

其中empty.txt是一个空文件.

where empty.txt is an empty file.

这篇关于Flexjson和Dexguard/Proguard的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆