我在我的android项目中打开了proguard,并在下面得到了警告。在Google上搜索,但找不到太多信息。使用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>;
}