Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AndroidStudio cannot resolve symbol for anything

I have an android project that I've been working on with no issues for a while. Now all of the sudden when I open it, every file is showing false errors. I get "cannot resolve symbol" for everything.

It still builds and runs correctly, but it's very annoying to have the red lines on every line of code. I've tried deleting the project and pulling it back down from GitHub, restarting AndroidStudio, and I even uninstalled/reinstalled AndroidStudio. Nothing works. Any suggestions?

like image 731
user3328434 Avatar asked Oct 12 '25 21:10

user3328434


1 Answers

I too had this problem. All I did was go to File, then invalidate cache/restart and it worked.

like image 129
endlesschaos Avatar answered Oct 14 '25 13:10

endlesschaos