Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to include TypeReference ProGuard rule

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)
like image 959
FindIt Avatar asked Dec 25 '22 23:12

FindIt


1 Answers

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

like image 151
FindIt Avatar answered Jan 08 '23 17:01

FindIt