The project encoding (UTF8) has been reset to the encoding specified in the Gradle build files UTF-8

The project encoding (UTF-8) has been reset to the encoding specified in the Gradle build files (UTF-8).
Mismatching encodings can lead to serious bugs.

错误原因:项目编码是UTF-8,而Gradle编码不是UTF-8;

解决方案:

File -> Setting->Editor->File Encodings->设置Global Encoding为UTF-8;

猜你喜欢

转载自blog.csdn.net/niuba123456/article/details/81667141