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图片的,所以要保证这两个文件夹里都要有布局中引用的图片,直接拷贝过去即可。

更多相关文章

  1. android lrucache使用
  2. android颜色对应的xml配置值
  3. 介绍两个Android开源项目:Android显示GIF动画
  4. Android(安卓)Bitmap与String互转
  5. Android各版本对应的SDK和JDK版本
  6. Unity调用Android
  7. 使用外部下载工具下载 Android(安卓)SDK
  8. Android获取图片Uri/path
  9. Android(安卓)compress Image

随机推荐

  1. ANDROID轮播广告图片
  2. android安装apk程序
  3. android屏蔽Home键
  4. 2013.09.22——— android GridView行背
  5. android中隐藏以及显示软键盘代码
  6. Speed Up and Back Up Your Rooted Andro
  7. Android——实现清除应用缓存功能
  8. 分享方法:android 获得屏幕状态
  9. Android(安卓)Service后台处理结果给Acti
  10. Android开发网上的一些重要知识点