Cleaning the project, delete the R.java and regenerate it.
If you have an error anywhere in your /res file (the resources) , the R will not be generated usually.
It could be an error in the name of a picture , or anything ...
fix your errors before.
good luck ;)