Android studio strange behaviour with some files appearing different than how they are

I have a problem with Android Studio that happened all of a sudden today when I opened AS. As you may see in the pictures, some files are strange. In this picture you may see that some of the .java files have different icon

enter image description here

And totally wrong content enter image description here Same thing happens with SOME of the XML files which have different content enter image description here Also some of the PNG images are not displayed in AS. All files are ok, if for example I open them externally (notepad...) they are ok (luckily). Is there a way to fix it? I've already tried to invalidate cache/restart but it didnt work. Thanks

1 answer

  • answered 2018-11-07 23:09 Juan Carlos Trujillo Almanza

    The same happened to me when I updated the libraries in gradle kotlin, etc. what I did was to download my project from my version manager and update the libraries one by one and prove the project works.