0

I have a nasty problem with R.Java in Eclipse, when trying to add new images to a newly created folder on my Res (drawable). what could be the problem ? Nothing happens after cleaning the project...

Roland
  • 127,288
  • 10
  • 191
  • 288
user3655773
  • 31
  • 1
  • 4

3 Answers3

0

Maybe you are using non-compliant names for your resources (like file with uppercase letters).

Please read the Android naming conventions.

bonnyz
  • 13,458
  • 5
  • 46
  • 70
0

Make sure the image you copy have all letters in the filename as smallcase . This could be one issue. File name: must contain only [a-z0-9_.]

Siju
  • 2,585
  • 4
  • 29
  • 53
0

I had faced many times same problem. try the below steps. it could help you. In Eclipse 1. Enable Problems view by clicking, Windows->ShowView->Problems check the problem and solve. 2. Remove R.java from gen folder of your eclipse try to build it again. 3. Check for Import R in your project. sometime eclipse imports android.R instead of yourclassname.R 4. Check for your XML file where sometimes id will not generate if you add it manually in xml file. 5. Reopen the project.

Hope it helps.

Madhukar
  • 5
  • 6