2015-02-10 37 views
4

我已經包含以下行以保留包內的所有文件。如何包含TypeReference ProGuard規則

 -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) 

回答

9

我找到了解決方案。在ProGuard-rules或Config文件中添加以下查找解決了問題。

  -keepattributes Signature 

PS:如果你有所幫助

請voteup
相關問題