请教安卓P的HTTP问题
问题是安卓P下,我要获得微信的头像,微信头像链接是HTTP的:http://wx.qlogo.cn/
比如:http://wx.qlogo.cn/mmopen/g3MonUZtNHkdmzicIlibx6iaFqAc56vxLSUfpb6n5WKSYVY0ChQKkiaJSgQ1dZuTOgvLLrhJbERQQ4eMsv84eavHiaiceqxibJxCfHe/0
于是在manifests中添加:
android:networkSecurityConfig="@xml/network_sec_config"
并xml目录下做了network_sec_config.xml文件:
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">wx.qlogo.cn</domain>
</domain-config>
</network-security-config>
但是,还是无法获得图片文件。
哪位大侠帮忙解决一下?