I would like to fix this error
R cannot be resolved to a variable
I looked up many answers, but I could not get the right one;
If you haven't yet, try cleaning your project as already suggested. In Eclipse Indigo, this is Project -> Clean... -> (Make sure your project(s) are checked) -> OK. After that, right click on your project and choose "Refresh".
If this is still a issue, a few questions: