I/GlIDe: Root cause (1 of 1)
Cause (1 of 1): class java.io.fileNotFoundException: No content provIDer: 有以上类似报错信息,原因是http请求被系统禁止。解决办法:
1. 在res 下xml文件夹中新建一个 network_config.xml 文件
<?xml version="1.0" enCoding="utf-8"?><network-security-config> <base-config cleartextTrafficPermitted="true" /></network-security-config>
2. 然后在AndroIDManifest.xml 配置文件中的 application中引用
<application androID:name=".MyApp" androID:icon="@mipmap/ic_launcher" androID:label="@string/app_name" androID:networkSecurityConfig="@xml/network_security_config" androID:roundIcon="@mipmap/ic_launcher_round" androID:theme="@style/Apptheme"></application>总结
以上是内存溢出为你收集整理的Android APP开发内容图片不显示全部内容,希望文章能够帮你解决Android APP开发内容图片不显示所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)