新版gradle tasks.withType(JavaCompile) { options.encoding = "UTF-8" } 123 123 旧版gradle tasks.withType(Compile) { options.encoding = "UTF-8" }