Android(安卓): Resource is not a Drawable (color or path)
16lz
2021-12-04
Android : Resource is not a Drawable (color or path)
Caused by: android.content.res.Resources$NotFoundException: Resource "me.samlss.broccoli_demo:drawable/ic_launcher_foreground" (7f060057) is not a Drawable (color or path):
关键错误信息:android.content.res.Resources$NotFoundException Resource is not a Drawable (color or path)
<?xml version="1.0" encoding="utf-8"?>
我的drawable-v24中有对应的ic_launcher_foreground图片,但是drawable中是没有ic_launcher_foreground图片的,所以要保证这两个文件夹里都要有布局中引用的图片,直接拷贝过去即可。
更多相关文章
- android lrucache使用
- android颜色对应的xml配置值
- 介绍两个Android开源项目:Android显示GIF动画
- Android(安卓)Bitmap与String互转
- Android各版本对应的SDK和JDK版本
- Unity调用Android
- 使用外部下载工具下载 Android(安卓)SDK
- Android获取图片Uri/path
- Android(安卓)compress Image