If you can't import you R in your Java class even after cleaning the project, then you have a critical mistake in you XML files e.g.
1) ERROR in any of yourLayout
xml files
2) Any of the XML files name are included spaces, capital letters or start with number.
3) Any of your drawable
images name contain capital letters, spaces or start with number.