1、 设置 file- setting -file encodeing- 设置utf-8 

 2 、  build.gradle 添加

tasks.withType(JavaCompile) {
    options.encoding = "UTF-8"
}

 

相关文章: