当我将proguard的minifyEnabled选项设置为true时,应用程序无法通过以下方式接收设置:>
javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
对于崩溃解析器,尽管其他网络似乎也能正常工作。
将改造和okhttp用于网络请求有关所涉图书馆的保护规则:
-keep class io.fabric.** { *;}
-keep class com.android.okhttp.** { *;}
-keep class com.android.org.conscrypt.** { *;}
-dontwarn com.squareup.okhttp.**
-keep class com.squareup.okhttp.* { *;}
-dontwarn com.squareup.okhttp3.**
-keep class com.squareup.okhttp3.* { *;}
-keepclasseswithmembers class * {
@retrofit.http.* <methods>;
}
-keep class retrofit.** { *; }
-dontwarn org.apache.http.**
-dontwarn android.net.http.AndroidHttpClient
-dontwarn retrofit.**
[当我将proguard的minifyEnabled选项设置为true时,应用程序无法使用javax.net.ssl.SSLHandshakeException接收设置:java.security.cert.CertPathValidatorException:信任锚...
我遇到了同样的问题,并解决了将.cer文件放入release / assets文件夹的问题...