android studio中文乱码问题 在build.gradle中加入代码: 1 tasks.withType(JavaCompile) { 2 options.encoding = "UTF-8" 3 }