是文件编码问题。 1,打开 Android Studio 进入设置界面 Ctrl + Alt + S 或 File --> Settings 打开如下界面: 2,将 Project Encodeing 设置为 UTF-8 编码即可。 相关文章: