I have an odd problem with Android Studio. Here is how my class file looks like on Android Studio
And here is what it looks like on a text editor.
<
I changed my projects location and it solved my problem. This happened when my system was accidently shut down due to power failure.
UPDATE: Quicker solution by the user Hong given below:
Delete the caches folder: C:\Users\my_user_name\.AndroidStudio3.3\system\caches
=====================
Here's what worked for me.
This should fix the issue.
Close Android studio and then delete the caches folder: C:\Users\user_name\.AndroidStudio3.4\system\caches