-6

Possible Duplicate:
How to regenerate R class?

I didn't know so yes i did close the emulator at the construction time and my R.java is gone, how do fix it? i researched and they said it could be some Capital Letter but everything in my project is lowercased so i dont know what to do.

I did clean my project more then 10 times and nothing.

I also did import all R in every file and cleaned it but no result.

EDIT

The error appeared when i changed the Project version from 4.1 to 2.2 so I changed back to 4.1 and the R.java got back, but why does it desappear when is 2.2? because I need it to be 2.2

Community
  • 1
  • 1
baTimá
  • 554
  • 1
  • 10
  • 28

2 Answers2

3

Try cleaning your project to regenerate the R file. In Eclipse this is found under Project -> Clean.

Luke
  • 1,069
  • 18
  • 28
  • I did clean my project more then 10 times and nothing. – baTimá Oct 19 '12 at 18:07
  • You could remove the project from eclipse and re-import it as well. Usually when R will not generate it's because of an error in a file in /res and R will not generate if there is an error with resources. – Luke Oct 19 '12 at 18:10
  • NO. still errors, i imported it and no R.java got generated. – baTimá Oct 19 '12 at 18:14
  • 2
    Without posting your project for people to look at then there isn't much else anyone will be able to help you with – Luke Oct 19 '12 at 18:26
  • check the edit answer for some more info. – baTimá Oct 19 '12 at 18:41
2

Make sure you're importing the correct R files and not android.R

starkej2
  • 11,391
  • 6
  • 35
  • 41