Android Studio 上面运行Java代码出现的乱码情况解决方法

来源:互联网 发布:淘宝网c2c商业模式 编辑:程序博客网 时间:2024/05/19 10:39

新版gradle

tasks.withType(JavaCompile) {    options.encoding = "UTF-8"}
  • 1
  • 2
  • 3
  • 1
  • 2
  • 3

旧版gradle

tasks.withType(Compile) {    options.encoding = "UTF-8"}
阅读全文
1 0