In my drawable folder I have a few images and they all reference perfect, but when I try and add any more images with the exact same size in the same folder, and try to refe
Also check if the resource-name contains any illegal characters (for me it was a "-" in my-image)
This is because your Image name contains "-" symbol . the only allowed characters are [a-zA-Z0-9_.]
Thanks
I have the same problem on Android Studio. No need to restart the IDE, just close and reopen the project and that will resolve the problem. (Make sure the src are correclty input).
In Android Studio your resource(images) file name cannot start with NUMERIC
and It cannot contain any BIG
character. To solve your problem, do as Aliyah said. Just restart your IDE. This solved my problem too.
If re-starting Eclipse does not correct the problem, make sure that the image name begins with an alpha character (non-numeric).
file name
must contain only abc...xyz
012...789
_
.
in Resources folder.
for ex:
my-image.png is False
!
MyImage.png is False
!
my image.png is False
!
...
...
my-xml.xml is False
!
MyXml.xml is False
!
my xml.xml is False
!
...
...