Android Studio shows wrong file contents
android-studio, intellij-idea
Solution
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.
- Close Android Studio
- Go to C:\Users*your username*
- Locate the Android Studio settings directory named .AndroidStudioX.X (X.X being the version)
- Rename it to something like old.AndroidStudioX.X
- Start Android Studio, and when it asks if you want to import settings, choose the old directory
This should fix the issue.
Problem
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. Any ideas why it is happening? I have tried closing then reimporting the project, invalidate caches and restart, clean project, build project, delete .idea folder and .iml files. All of my files are broken when opening in AS but looks fine on text editors.