I know there are a lot of questions similar to this one. But I have tried the solutions and none are working. I thought one of the following should work: 1. Getting rid of 'import android.R' line. 2. Cleaning the project and then building it again.
Still I have the same old "R cannot be resolved to a variable" problem. The gen folder is empty.