Home » Android » android – Invalid file name error in eclipse for images

android – Invalid file name error in eclipse for images

Posted by: admin June 15, 2020 Leave a comment

Questions:

I’m facing the following error:

res/drawable-hdpi/Twitter.png: Invalid file name: must contain only [a-z0-9_.]

Twitter.png looks like a valid filename to me. None of the other images having names like Facebook.png, RSS.png work.

Help please!!

How to&Answers:

uppercase is not allowed for resource names..
only lowercase(a-z), 0-9, .(dot) and _ are valid.

Your image names should be twitter.png, facebook.png, rss.png