I am working in android SDK(Eclipse) platform 2.2 and I have been running through some tutorials, and some of them say to just add files to existing folder, or add folders; with
I had this problem too.In my case I had add an image in drawable folder with a capital letter an it so I had o notification in the console like "res\drawable-hdpi\addBut.png: Invalid file name: must contain only [a-z0-9_.]" and the R.java file could not be refreshed.All solved after removing this file.