解决办法,在java工程目录下的build.gradle添加如下代码,然后重新运行一遍。
tasks.withType(JavaCompile) { options.encoding = "UTF-8" }转自:http://blog.csdn.net/qiumeqiu/article/details/50837576