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

如图:

posted on 2017-05-26 11:35  虫子CCC  阅读(364)  评论(0编辑  收藏  举报