【问题标题】:How to include TypeReference ProGuard rule如何包含 TypeReference ProGuard 规则
【发布时间】:2015-04-10 13:55:41
【问题描述】:

我已经包含以下行以将所有文件保留在包中。

        -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)

【问题讨论】:

    标签: jackson proguard


    【解决方案1】:

    我找到了解决方案。将以下查找添加到 ProGuard-rules 或 Config 文件中解决了该问题。

                -keepattributes Signature
    

    PS:如果觉得有帮助请点赞

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-08-28
      • 2020-01-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-11-16
      • 1970-01-01
      相关资源
      最近更新 更多