fastjson,混淆,ClassNotFoundException, javax.xml.bind.annotation.XmlAccessorType

Caused by: java.lang.ClassNotFoundException: Didn't find class "javax.xml.bind.annotation.XmlAccessorType" on path: DexPathList

fastjson,混淆,ClassNotFoundException, javax.xml.bind.annotation.XmlAccessorType

原因:混淆规则里面,fastjson解析的实体类混淆了。

解决办法:keep相关实体类。

在proguard文件中添加

-keep class 实体类包名.**{*;}