<pre name="code" class="plain"> //设置编码
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
我用的是gradle2.1版本,其他版本不知道
<pre name="code" class="plain"> //设置编码
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}