问题
i interested to know why my android studio couldn't load file content correctly? this is simple screen shot as what happened for my application
is anybody could help me to resolve this problem?
回答1:
Read Mismatched Encoding
The encoding used to compile your project is specified in the build.gradle files. The default, which is used when no specific encoding is specified, is UTF-8. We strongly recommend you use UTF-8 encoding whenever possible.
File -> Settings-> Search -> File Encoding->Global Encoding->UTF-8
回答2:
This looks like an encoding issue. In Android Studio the encoding is set to UTF-8
, but I don't see it specified in Notepad. In Notepad, use the Save As
dialog and set the Encoding
dropdown to UTF-8
. It should then load properly in Android Studio.
来源:https://stackoverflow.com/questions/61390282/android-studio-could-load-file-contents-correctly