操作步骤: idea菜单栏找到:help->Edit Custom VM Options,在打开文件中追加: -Dfile.encoding=UTF-8 参考:idea gradle 在控制台输出中文乱码解决方式