“No resource found that matches the given name” error

浪子不回头ぞ 提交于 2020-01-01 19:23:46

问题


In my application I get this error for all drawalbes that I have in the folder res/drawable:

[2011-05-15 16:07:47 - Marmara] libpng error: Not a PNG file
[2011-05-15 16:07:47 - Marmara] ERROR: Failure processing PNG image D:\WorkSpace JEE\Marmara\res\drawable\waiting.png
[2011-05-15 16:07:47 - Marmara] D:\WorkSpace JEE\Marmara\res\layout\detail_promo.xml:55: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/ombreinterne_imghp').

I've tried to move all drawables and add them again, I've tried also to clean the project many times, but none of that works.


回答1:


I think your waiting.png has some problem, Remove that image and check ! Because of some corrupted png file further processing is not happening.



来源:https://stackoverflow.com/questions/6009389/no-resource-found-that-matches-the-given-name-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!