解决 Gradle 2.0后 : Could not find property 'Compile' on root project 的问题

来源:互联网 发布:java中文是什么意思 编辑:程序博客网 时间:2024/05/16 05:05

Gradle 2.0前  gradle.build

tasks.withType(Compile) { options.encoding = "UTF-8" }
升级到2.0后
tasks.withType(JavaCompile) { options.encoding = "UTF-8" }


1 0