Question

I've put a PNG image inside /res/drawable and specified it in the manifest, but Eclipse throws an error saying No resource found.

I've searched everywhere, and can't seem to find an answer to this.

The filename appears in autocomplete too, without the extension.

Edit:The icon's filename is ic_menu_umbrella.png

and here's how it appears in the manifest

<application android:label="@string/app_name" android:icon="@drawable/ic_menu_umbrella">
Was it helpful?

Solution

Go to the folder make sure the picture exists.


Open Eclipse with administrative previliges.


Make sure your res folder is complete(contains values and layout folders)


Try using another picture. If it works, the problem is in your picture.


Make sure your picture's filename is ic_menu_umbrella.png

OTHER TIPS

I can't comment, so I will answer, try cleaning the project (Right click on the project -> Android -> Fix Android Project and Project -> Clean) before you run it, sometimes I have problems like these.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top