file was loaded in the wrong encoding: 'UTF-8' in android studio

前端 未结 9 1524
挽巷
挽巷 2020-12-09 10:55

my android studio gone crazy like this please help??

file was loaded in the wrong encoding: \'UTF-8\' in android studio

9条回答
  •  不思量自难忘°
    2020-12-09 11:22

    All you need is to remove the Android Studio settings directory, which can be found:

    on Windows

    C:/Users/yourusername/.AndroidStudioX.Y
    

    on Linux:

    /home/yourusername/.AndroidStudioX.Y
    

    Close Android Studio, delete the directory, then reopen Android-Studio and open your project.

    Also if it happens on a different IDE, it is the same approach.

    If the issue persists, try to copy the content of your project directory into a new directory, then open the project from the new directory.

提交回复
热议问题