在模块的build.gradle中加入:

tasks.withType(JavaCompile) {
    options.encoding = "UTF-8"
}
JavaCompile意思编译java代码时使用utf-8编码



相关文章:

  • 2021-04-25
  • 2021-12-03
  • 2021-05-26
  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-01
  • 2021-06-12
  • 2021-06-15
  • 2021-11-12
相关资源
相似解决方案