如何包含 TypeReference ProGuard 规则

问题描述 投票:0回答:1

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

        -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个回答
13
投票

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

-keepattributes Signature
© www.soinside.com 2019 - 2024. All rights reserved.