【发布时间】:2017-10-27 01:51:53
【问题描述】:
我在我的 android 项目中打开了 proguard 并收到以下警告。在谷歌上搜索,但找不到太多信息。
警告:retrofit.Platform$Java8:找不到引用的类 org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
我已经在我的项目中加入了 retrofit2 proguard 规则。
-dontwarn retrofit2.**
-keep class retrofit2.** { *; }
-keepattributes Signature
-keepattributes Exceptions
-keepclasseswithmembers class * {
@retrofit2.http.* <methods>;
}
【问题讨论】:
标签: android proguard android-proguard