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;
Sooo many different possible solutions! For me, I found that Eclipse had created the faulty file in the wrong package. I fixed it by moving it into the same package as the R.java file.