今天学习搭建Gradle,发现输出一直是乱码,在网上搜索到解决方法是
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
加入了以后发现还是打包还是报错
、需要在所有配置文件中
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
tasks.withType(Javadoc) {
options.encoding = "UTF-8"
}