how to overcome Android Studio cannot resolve symbol for android classes
Android Studio suddenly cannot resolve symbols helped:
- Exit Android Studio
- Back up your project
- Delete all the .iml files and the .idea folder
- Relaunch Android Studio and reimport your project
You can do "File" -> "Invalidate Caches...", and select "Invalidate and Restart" option to fix this.