I updated my android studio to latest version - 3.0.1. Since then it complains \'Cannot resolve symbol\' for Theme and ThemeOverlay in the following lines of code. App runs
1)Close the project from the File menu.
2)Open the project again as existing Android Studio project.
This fix my problem.