gradle 错误: 编码GBK的不可映射字符


build.gradle加代码

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