您的位置: 首页 > 文章 > fastjson,混淆,ClassNotFoundException, javax.xml.bind.annotation.XmlAccessorType fastjson,混淆,ClassNotFoundException, javax.xml.bind.annotation.XmlAccessorType 分类: 文章 • 2024-09-16 12:01:10 Caused by: java.lang.ClassNotFoundException: Didn't find class "javax.xml.bind.annotation.XmlAccessorType" on path: DexPathList 原因:混淆规则里面,fastjson解析的实体类混淆了。 解决办法:keep相关实体类。 在proguard文件中添加 -keep class 实体类包名.**{*;}