在build.gradle文件中加上 android {compileOptions.encoding = "GBK"} 转载于:https://www.cnblogs.com/bewolf/p/4666337.html