Today Android Studio started to behave strange. Source java files opens as png files something. I can build and run the app and if I look in the file system the java files looks
Another way to solve this:
Close Android Studio and delete the caches folder:
C:\Users\user_name\.AndroidStudio4.0\system\caches