Android Studio shows wrong file contents

后端 未结 9 1432
失恋的感觉
失恋的感觉 2020-11-21 11:09

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.

<

9条回答
  •  野的像风
    2020-11-21 11:50

    Thanks to the Answer of Asim, I found deleting folder caches fixed the problem for my case (all gradle files in Android Studio show contents that have nothing to do with the actual contents of these files):

    C:\Users\my_user_name\.AndroidStudio3.3\system\caches
    

    Edit[2020-07-17]:

    This is still happening with Android Studio 4.0, so I have to delete the following folder to fix this problem:

       C:\Users\my_user_name\.AndroidStudio4.0\system\caches
    

提交回复
热议问题