经查阅资料,发现需要手动在build.gradle中添加代码//新版tasks.withType(JavaCompile) { options.encoding = "UTF-8" } //旧版,以gradle-1.12为例 tasks.withType(Compile) { options.encoding = "UTF-8" } ......
本文摘自 :https://www.cnblogs.com/
海量资源,尽在掌握
经查阅资料,发现需要手动在build.gradle中添加代码//新版tasks.withType(JavaCompile) { options.encoding = "UTF-8" } //旧版,以gradle-1.12为例 tasks.withType(Compile) { options.encoding = "UTF-8" } ......
本文摘自 :https://www.cnblogs.com/
开通会员,享受整站包年服务