如何包含TypeReference ProGuard规则
问题描述:
我已经包含以下行以保留包内的所有文件。如何包含TypeReference ProGuard规则
-keep class com.fasterxml.** { *; }
我收到以下异常。
Caused by: java.lang.IllegalArgumentException: Internal error: TypeReference constructed without actual type information
at com.fasterxml.jackson.core.type.TypeReference.<init>(SourceFile:36)
答
我找到了解决方案。在ProGuard-rules或Config文件中添加以下查找解决了问题。
-keepattributes Signature
PS:如果你有所帮助
请voteup