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 file and now I am getting an error in saying it cannot resolve symbol R.

Does anyone know how to fix it?