Caused by: java.lang.IllegalArgumentException: Internal error: TypeReference constructed without actual type information at a.b.a.g.b.<init>(TypeReference.java:35) at a.c.d.q.<init>(StdCouchDbInstance.java:22) at a.c.d.p.<clinit>(StdCouchDbInstance.java:22)
我使用的是EktorpClIEnt库(使用couchdb),StdCouchDbInstance.java是指this文件,TypeReference.java是this包.有关在Proguard配置文件中应该使用哪个选项来解决此问题的任何建议?
解决方法 我刚刚使用Proguard遇到了Ektorp依赖问题. TypeReference是通用的,-keepattributes Signature将保留通用信息.我实际上使用了以下内容,这解决了我的问题.
-keepattributes Signature,*Annotation*,EnclosingMethod
从Proguard Examples:
总结The “Signature” attribute is required to be able to access generic types when compiling in JDK 5.0 and higher.
以上是内存溢出为你收集整理的Android Proguard – Jackson的TypeReference类中的IllegalArgumentException全部内容,希望文章能够帮你解决Android Proguard – Jackson的TypeReference类中的IllegalArgumentException所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)