Android Studio could load file contents correctly

风流意气都作罢 提交于 2021-02-11 07:07:43

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!