“未找到用于认证路径的信任锚”,位于请求设置和proguard上

问题描述 投票:1回答:1

当我将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:信任锚...

android proguard crashlytics
1个回答
0
投票

我遇到了同样的问题,并解决了将.cer文件放入release / assets文件夹的问题...

© www.soinside.com 2019 - 2024. All rights reserved.