Cant find R.jav file

Followed the book’s instruction to go to;
app/build/generated/source/r/debug but there were no files within that path. only a debug file. I cannot see a R.java file and now I am getting an error in QuizActivity.java saying it cannot resolve symbol R.

Does anyone know how to fix it?