Android报No resource found that matches the given name问题的解决

来源:互联网 发布:美国cpi数据公布时间 编辑:程序博客网 时间:2024/06/05 14:26

在Android开发时,新建一个Android Application Project后报 No resource found that matches the given name (at 'icon' with value '@drawable/  ic_launcher').的错误。试了很多办法,最后解决。错误截图如下:







最后发现是project(我的工程名字是love)下的res下的drawable(4个)文件下面没有一个名为ic_launcher的.png文件,然后自己在网上找了一个Android的logo截图后把这张截图(命名为AndroidLogo.PNG)分别复制到drawable(4个)文件夹中,然后就不报错了。



0 0
原创粉丝点击