如何包含 TypeReference ProGuard 规则

2024-03-01

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

        -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:如果觉得有帮助请点赞

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何包含 TypeReference ProGuard 规则 的相关文章

随机推荐