美文网首页
java.net.UnknownServiceException

java.net.UnknownServiceException

作者: 为什么要简称 | 来源:发表于2018-12-19 11:10 被阅读53次

https://developer.android.com/training/articles/security-config

<?xml version="1.0" encoding="utf-8"?>
<manifest ... >
    <application       
        android:networkSecurityConfig="@xml/network_security_config"
        ... >
        ...
    </application>
</manifest>

res/xml/network_security_config.xml:

<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
  <base-config cleartextTrafficPermitted="true" />
</network-security-config>

相关文章

网友评论

      本文标题:java.net.UnknownServiceException

      本文链接:https://www.haomeiwen.com/subject/ihwdkqtx.html