当我导出已签名的apk时,会显示以下错误:
Proguard returned with error code 1. See console
Warning: com.google.android.gms.internal.zzaj: can't find referenced method 'void addHeader(java.lang.String,java.lang.String)' in program class com.google.android.gms.internal.zzak
Warning: com.google.android.gms.internal.zzak: can't find referenced method 'void setURI(java.net.URI)' in program class com.google.android.gms.internal.zzak
Warning: com.google.android.gms.internal.zzar: can't find referenced class android.net.http.AndroidHttpClient
仅添加这些Proguard
规则是否安全:
-keep class android.net.http.AndroidHttpClient
-dontwarn android.net.http.AndroidHttpClient
或者我还必须在项目中包含org.apache.http.legacy.jar
吗?
答案 0 :(得分:0)
将此行添加到您的proguard。它不会影响代码中的任何内容
-dontwarn org.apache.http.**