admin管理员组文章数量:1571173
本文档为个人博客文档系统的备份版本、作者:小游、作者博客:点击访问
安卓9.0默认不允许http请求
我们可以在APPlocation里面加上 android:usesCleartextTraffic="true"
但是我的是https的连接,所以应该不是这个问题,后面我看了一下错误结果如下
java.SocketException: socket failed: EPERM
emm最后找了半天发现卸载软件后重新安装就没问题了。。。。。
这模拟器是真的坑!
参考文章
https://www.jianshu/p/289be7794e24
还有可以参考
https://stackoverflow/questions/39933345/no-network-security-config-specified-using-platform-default-android-log/61535399#61535399
have a same problem, with volley, but this is my solution:
In Android Manifiest, in tag application add:
android:usesCleartextTraffic="true"
android:networkSecuri
版权声明:本文标题:Android 9.0不能联网以及无法用http访问互联网解决方案 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/xitong/1727685603a1125339.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论