如何包含 TypeReference ProGuard 规则
How to include TypeReference ProGuard rule
我已经包含了以下行以将所有文件保存在包中。
-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 规则或配置文件中解决了该问题。
-keepattributes Signature
PS:如果您觉得有帮助,请投票
我已经包含了以下行以将所有文件保存在包中。
-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 规则或配置文件中解决了该问题。
-keepattributes Signature
PS:如果您觉得有帮助,请投票