Gson解析JSON字符串时出现了下面的错误:
No-args constructor for class X does not exist. Register an InstanceCreator with Gson for this type to fix this problem.
解决的办法是把对应的Class改成静态类。
© 著作权归作者所有
举报
相关热门文章
发表评论
0/200
Gson解析JSON字符串时出现了下面的错误:
No-args constructor for class X does not exist. Register an InstanceCreator with Gson for this type to fix this problem.
解决的办法是把对应的Class改成静态类。
© 著作权归作者所有
发表评论