Every time in code that I have an R, I get an error R cannot be resolved to a variable.
The R.java file appears to be missing.
I have tried cleaning the proj
Had the same problem but cleaning the project didn't solve anything even with correct xml. This is what I did
a) Make sure the java builders are checked as in the pic below. If they are , uncheck and check again
b) Insert a dummy value eg in layout add a button
c) Clean project