如何包含TypeReference ProGuard规则 [英] How to include TypeReference ProGuard rule

查看:183
本文介绍了如何包含TypeReference ProGuard规则的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经包含以下行来保存包中的所有文件。

I have already included following line to keep all files inside the package.

        -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规则或Config文件解决了该问题。

I found the solution. Adding following find into ProGuard-rules or Config file solved the issue.

            -keepattributes Signature

PS:如果你觉得这很有用,请投票支持

PS: Please voteup if you find this helpful

这篇关于如何包含TypeReference ProGuard规则的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆