标签:text log 安装 work cer idm dma 参考 str
1.在源码res目录下新建xml目录,增加network_security_config.xml文件
<network-security-config> <base-config cleartextTrafficPermitted="true"> <trust-anchors> <certificates src="system" overridePins="true" /> <certificates src="user" overridePins="true" /> </trust-anchors> </base-config> </network-security-config>
2.修改项目的AndroidManifest.xml文件,在application中增加android:networkSecurityConfig="@xml/network_security_config"
<?xml version="1.0" encoding="utf-8"?> <manifest ... > <application android:networkSecurityConfig="@xml/network_security_config" ... > ... </application> </manifest>
标签:text log 安装 work cer idm dma 参考 str
原文地址:http://www.cnblogs.com/meitian/p/6889150.html