统一设置为UTF8编码
在工程的根目录下的build.gradle文件中,添加定义。
tasks. withType(JavaCompile) {
    options.encoding = "UTF-8"
}

如图:

指定Android Studio编译工程时的源文件编码

相关文章:

  • 2021-11-10
  • 2022-12-23
  • 2021-06-03
  • 2021-10-05
  • 2022-03-03
猜你喜欢
  • 2022-12-23
  • 2021-12-06
  • 2021-06-06
  • 2021-06-06
  • 2021-07-14
  • 2021-11-30
  • 2021-09-25
相关资源
相似解决方案