0

After change some resources (Images) manually my R.java file has disappeared. I've tried all, I've read this, this, and a lot of entries, but nothing works for me. I have revised all my Layouts and resources, but apparently any layout hasn't problems. Is possible to export all my project and build another? Or without the R.java class I've nothing to do? thanks a lot!

I've solved it! I deleted the last files added and I restarted eclipsed, right now all is working correctly

Community
  • 1
  • 1
jramirez
  • 486
  • 9
  • 24

2 Answers2

0

Have you checked your problems tab for errors within the /res/ folder? If there is something wrong with any of your resource files then the R file will not be generated.

Nicklas Gnejs Eriksson
  • 3,395
  • 2
  • 21
  • 19
0

Look in your Console output. You probably have an illegally named file and have a message similar to --

Invalid file name: must contain only [a-z0-9_.]
iagreen
  • 31,470
  • 8
  • 76
  • 90
  • No, only appears this: When I try to rebuild the project, the console throws this: [2012-12-19 19:14:32 - andtest] R.java was removed! Recreating R.java! But nothing changes after this. – jramirez Dec 19 '12 at 18:17
  • The next suspect would be an error in one of the xml files. Do Project > Clean and then look in the "Problems" view for xml errors. Also, on older versions of the ADT, you can get .xml.out files which interfere with compilation. You can remove these, they can be created by mistake by pressing the run or build buttons when you are editing an xml file. – iagreen Dec 19 '12 at 18:23