标签: supported

2 篇文章

thumbnail
android 9.0出现联网报错问题 CLEARTEXT communication not supported
from--https://www.jianshu.com/p/1d481b837eea 1、Android 9.0 从网络获取数据时会出现个弹窗错误  错误如图 图(1) 出现这种问题很好解决 1、新建 res/xml/network_security_config.xml 文件  如图(2) 图(2) 2、network_security_config.xml文件中 <?xml version="1.0" encoding="utf-8"?> <network-security-config> <base-config cleartextTrafficPermitted="true" /> </network-security-config>       &n…
OKHTTP 错误CLEARTEXT communication not supported
from--https://blog.csdn.net/xyx2999/article/details/83987062 测试机android9.0的pixel2, 开发用的android api28, com.zhy:okhttputils:2.6.2 服务器用的http而非https 按照https://blog.csdn.net/xyx2999/article/details/82984501进行了配置,连接服务器报错 CLEARTEXT communication not supported: [ConnectionSpec(cipherSuites=[TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_RSA…