I upgraded Android Studio today to 3.1, and now Android Studio says it cannot resolve symbols for most of the resources (for example ThemeOverlay
in style
Close and reopen project as existing Android Studio project
After upgrading Android Studio, you can invalidate cache and restart.
File
> Invalidate Caches / Restart…
I closed and reopened project as existing Android Studio project (did not import it), and it worked! Thanks to Andrew Glukhoff 's comment.
Closing a project and then opening as existing one does wonders!
Close the project and import it again. Worked for me today.
You can try to close the project and exit Android Studio (only closing and reimporting it didn't do it for me). Launch Android Studio and open the project again. That worked for me!