我正在尝试在 Google Play 上发布应用程序,但收到一封包含以下错误消息的电子邮件:Vulnerability TrustManager,apps contains an unsafe implementation of TrustManager。
要正确处理 SSL 证书验证,请更改自定义 X509TrustManager 接口的 checkServerTrusted 方法中的代码,以在服务器提供的证书不符合您的期望时引发 CertificateException 或 IllegalArgumentException。
我在我的应用程序中使用这些库: compile 'com.squareup.picasso:picasso:2.5.2' compile 'com.squareup.retrofit2:retrofit:2.0.1' compile 'com.squareup.retrofit2:converter-gson: 2.0.0' 编译 'com.squareup.okhttp3:okhttp:3.3.1'
你能给我一根电缆来解决它吗,在此先感谢