How to include TypeReference ProGuard rule

流过昼夜 提交于 2019-12-12 09:44:57

问题


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

        -keep class com.fasterxml.** { *; }

I am getting following exception.

        Caused by: java.lang.IllegalArgumentException: Internal error:             TypeReference constructed without actual type information
        at com.fasterxml.jackson.core.type.TypeReference.<init>(SourceFile:36)

回答1:


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

            -keepattributes Signature

PS: Please voteup if you find this helpful



来源:https://stackoverflow.com/questions/28433281/how-to-include-typereference-proguard-rule

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!