如何解决"Google Play将阻止发布使用不安全的HostnameVerifier实现的任何新应用或更新"? [英] How to solve "Google Play will block publishing of any new apps or updates that use an unsafe implementation of HostnameVerifier"?

查看:294
本文介绍了如何解决"Google Play将阻止发布使用不安全的HostnameVerifier实现的任何新应用或更新"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从2017年3月1日开始,Google Play将禁止发布使用不安全实施HostnameVerifier的任何新应用或更新.您发布的APK版本将保持不变,但是除非您解决此漏洞,否则该应用程序的任何更新都将被阻止.

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.

需要采取行动

要正确处理主机名验证,请在服务器的主机名不符合您的期望时,在自定义HostnameVerifier界面中更改verify方法以返回false.

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服务调用.

This is the message I got from the Google Play Store for one of my apps. We are doing some web service calls by using the Apache library.

如何纠正此问题?

推荐答案

分支并切换到OkHttp.你真是个漫长的夜晚.

Branch and switch to OkHttp. You got a long night a head of you.

这篇关于如何解决"Google Play将阻止发布使用不安全的HostnameVerifier实现的任何新应用或更新"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆