IDEA用gradle编译项目控制台输出乱码

1、在gradle-wrapper.properties添加下面内容

org.gradle.jvmargs=-Dfile.encoding=UTF-8

2、点击help->edit custom vm options添加下面内容

-Dfile.encoding=UTF-8

3、重启IDEA就可以了

你可能感兴趣的:(开发工具,intellij,idea)