ERROR Error: No resource found that matches the given name (at ’src’ with value ‘@drawable/mypicture_48′).

This is an error that you get because eclipse cannot find the resource you are referring to. A resource could be a picture/audio/etc, whose type is specified after the @ symbol, such as @string, or @drawable in my case. In general, resources are stored under the folder ‘res’ in your project. In this case, eclipse is looking under ‘res’ and then under the ‘drawable’ folder for a resource (such as a picture, i.e. mypicture_48.png) but it doesn’t see anything named this because I forgot to copy my picture into the ‘res’ folder, so it is throwing an error. To fix it, all I have to do is copy this resource into the res folder. If I am using an @string, then I need to modify my strings.xml by adding some xml to declare a new string resource.

Tags: , , , , , , , , ,