Cleartext HTTP traffic to ... not permitted


Android下APP出现java.io.IOException: Cleartext HTTP traffic to dict.youdao.com not permitted,百度查了一下是Android高版本后限制了HTTP访问权限,如何解决?
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
    <base-config cleartextTrafficPermitted="true" />
</network-security-config>
    <application
    ...
     android:networkSecurityConfig="@xml/network_security_config"
    ...
        />

 

原文地址: https://www.cnblogs.com/kinglandsoft/p/10481500.html


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM