How to include TypeReference ProGuard rule

2019-05-07 08:59发布

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条回答
相关推荐>>
2楼-- · 2019-05-07 09:18

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

查看更多
登录 后发表回答