Android Studio cannot resolve symbol but code executes correctly

I have faced this issue when IntelliJ IDEA got closed abruptly due to OS crash.

You can do “File” -> “Invalidate Caches…”, and select “Invalidate and Restart” option to fix this.

Leave a Comment