android - 如何解决 "Google Play will block publishing of any new apps or updates that use an unsafe implementation of HostnameVerifier"?

标签 android ssl hostname

Beginning March 1, 2017, Google Play will block publishing of any new apps or updates that use an unsafe implementation of HostnameVerifier. Your published APK version will remain unaffected, however any updates to the app will be blocked unless you address this vulnerability.

Action required

To properly handle hostname verification, change the verify method in your custom HostnameVerifier interface to return false whenever the hostname of the server does not meet your expectations.



这是我从 Google Play 商店收到的关于我的一个应用程序的消息。我们正在使用 Apache 库进行一些 Web 服务调用。

如何纠正这个问题?

最佳答案

分支并切换到 OkHttp。你有一个漫长的夜晚。

关于android - 如何解决 "Google Play will block publishing of any new apps or updates that use an unsafe implementation of HostnameVerifier"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42087342/

相关文章:

java - 连接到互联网时,Firebase Jobdispatcher 不会每次都触发

Android:如何从 Assets 中播放视频?

Docker v1.12 无法通过环境变量 $HOSTNAME 更改主机名

apache - 使用 Apache Rewrite 从 HTTP 转到 HTTPS,反之亦然,但我收到 302 响应并且我的应用程序出错

docker - 通过 nginx websocket 代理连接时 WebApp 崩溃

iis - 在 IIS 绑定(bind)中设置主机名会破坏网站

git - 致命的 : unable to access cannot resolve host gitlab error when using HTTPS git repository

android - 问题 : New instance of activity created on resuming the app from background

android - Android 浏览器中书签的文件夹层次结构

SSL 证书有效,但 New Relic ping 无法检测到它