有人可以帮我解决有关proguard规则的警告
注意:配置引用了未知类'com.google.android.gms.common.api.internal.BasePendingResult.ReleasableResultGuardian' 注意:配置引用的是未知类'com.google.android.gms.common.internal.safeparcel.SafeParcelable' 警告:com.amazonaws.util.json.JacksonFactory:找不到引用的类com.fasterxml.jackson.core.JsonFactory 警告:com.amazonaws.util.json.JacksonFactory:找不到引用的类com.fasterxml.jackson.core.JsonFactory 警告:com.amazonaws.util.json.JacksonFactory:找不到引用的类com.fasterxml.jackson.core.JsonToken 警告:com.amazonaws.util.json.JacksonFactory:找不到引用的类com.fasterxml.jackson.core.JsonToken 警告:com.amazonaws.util.json.JacksonFactory:找不到引用的类com.fasterxml.jackson.core.JsonFactory 警告:com.amazonaws.util.json.JacksonFactory:找不到引用的类com.fasterxml.jackson.core.JsonToken 警告:com.amazonaws.util.json.JacksonFactory:找不到引用的类com.fasterxml.jackson.core.JsonToken 警告:com.amazonaws.util.json.JacksonFactory:找不到引用的类com.fasterxml.jackson.core.JsonToken 警告:com.amazonaws.util.json.JacksonFactory:找不到引用的类com.fasterxml.jackson.core.JsonToken 警告:com.amazonaws.util.json.JacksonFactory $ 1:找不到引用的类com.fasterxml.jackson.core.JsonToken 警告:com.amazonaws.util.json.JacksonFactory $ 1:找不到引用的类com.fasterxml.jackson.core.JsonToken 警告:com.amazonaws.util.json.JacksonFactory $ 1:找不到引用的类com.fasterxml.jackson.core.JsonToken 警告:com.amazonaws.util.json.JacksonFactory $ 1:找不到引用的类com.fasterxml.jackson.core.JsonToken 警告:com.amazonaws.util.json.JacksonFactory $ 1:找不到引用的类com.fasterxml.jackson.core.JsonToken 警告:com.amazonaws.util.json.JacksonFactory $ 1:找不到引用的类com.fasterxml.jackson.core.JsonToken 警告:com.amazonaws.util.json.JacksonFactory $ 1:找不到引用的类com.fasterxml.jackson.core.JsonToken 警告:com.amazonaws.util.json.JacksonFactory $ 1:找不到引用的类com.fasterxml.jackson.core.JsonToken 警告:com.amazonaws.util.json.JacksonFactory $ 1:找不到引用的类com.fasterxml.jackson.core.JsonToken 警告:com.amazonaws.util.json.JacksonFactory $ 1:找不到引用的类com.fasterxml.jackson.core.JsonToken 警告:com.amazonaws.util.json.JacksonFactory $ 1:找不到引用的类com.fasterxml.jackson.core.JsonToken 警告:com.amazonaws.util.json.JacksonFactory $ 1:找不到引用的类com.fasterxml.jackson.core.JsonToken 警告:com.amazonaws.util.json.JacksonFactory $ 1:找不到引用的类com.fasterxml.jackson.core.JsonToken 警告:com.amazonaws.util.json.JacksonFactory $ 1:找不到引用的类com.fasterxml.jackson.core.JsonToken 警告:com.amazonaws.util.json.JacksonFactory $ JacksonReader:找不到引用的类com.fasterxml.jackson.core.JsonFactory 警告:com.amazonaws.util.json.JacksonFactory $ JacksonReader:找不到引用的类com.fasterxml.jackson.core.JsonToken 警告:com.amazonaws.util.json.JacksonFactory $ JacksonReader:找不到引用的类com.fasterxml.jackson.core.JsonToken 警告:com.amazonaws.util.json.JacksonFactory $ JacksonReader:找不到引用的类com.fasterxml.jackson.core.JsonToken 警告:com.amazonaws.util.json.JacksonFactory $ JacksonReader:找不到引用的类com.fasterxml.jackson.core.JsonToken 警告:com.amazonaws.util.json.JacksonFactory $ JacksonReader:找不到引用的类com.fasterxml.jackson.core.JsonToken 警告:com.amazonaws.util.json.JacksonFactory $ JacksonReader:找不到引用的类com.fasterxml.jackson.core.JsonParser 警告:com.amazonaws.util.json.JacksonFactory $ JacksonReader:找不到引用的类com.fasterxml.jackson.core.JsonToken 警告:com.amazonaws.util.json.JacksonFactory $ JacksonReader:找不到引用的类com.fasterxml.jackson.core.JsonParser 警告:com.amazonaws.util.json.JacksonFactory $ JacksonReader:找不到引用的类com.fasterxml.jackson.core.JsonParser
答案 0 :(得分:0)
在proguard-rules.pro文件中添加以下值解决了我的问题。
-dontnote com.google.common.**
-keep public class com.google.android.gms.* { public *; }
-dontwarn com.google.android.gms.**
-dontwarn java.lang.ClassValue
-dontwarn com.google.common.base.**
-keep class com.google.common.base.** {*;}
-dontwarn com.google.errorprone.annotations.**
-keep class com.google.errorprone.annotations.** {*;}
-dontwarn com.google.j2objc.annotations.**
-keep class com.google.j2objc.annotations.** { *; }
-dontwarn java.lang.ClassValue
-keep class java.lang.ClassValue { *; }
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
-keep class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement { *; }