Android APP开发内容图片不显示

Android APP开发内容图片不显示,第1张

概述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" e

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开发内容图片不显示所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://www.outofmemory.cn/web/1121582.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-29
下一篇 2022-05-29

发表评论

登录后才能评论

评论列表(0条)

保存