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;
Simple Solution:
Check whether in gen[generated Java Files], under your project package, there is a R.java file.
If no,
If yes,