Android : Resource is not a Drawable (color or path)

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)




    
    
    
        
        
    

 

我的drawable-v24中有对应的ic_launcher_foreground图片,但是drawable中是没有ic_launcher_foreground图片的,所以要保证这两个文件夹里都要有布局中引用的图片,直接拷贝过去即可。

你可能感兴趣的:(Android,Studio,Error)