Android Studio3.5 suddenly cannot resolve symbols

66 Views Asked by At

Android Studio3.5.3 suddenly cannot resolve symbol xxxx error occurs. and even cannot load some java file, showing wrong characters with UTF-8 encoding.

Well I searched online and tried the Invalid & Restart methods, but that did not work at all.

Someone please help me out. Thanks.

2

There are 2 best solutions below

0
Manisha On

please try this
"File" -> "Invalidate Caches...", and select "Invalidate and Restart"

0
Rocky On

As @MarkusKauppinen provided post: Android Studio shows wrong file contents

This is the key: Delete the caches folder: C:\Users\my_user_name\.AndroidStudio3.5\system\caches