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
Invalidate Caches / Restart from file menu solved it for me. Didn't see the same answer below