我有一个非常简单的Java + Gradle项目。它可以成功地构建。使用“gradle run”命令在Shell中也可以正常运行。但是,如果我尝试在IntelliJ中运行,就会出现以下错误:
Cannot start compilation: the output path is not specified for module "xyz" Specify the output path in Configure Project.
我的“编译器输出”设置为“继承项目编译输出路径”。我不想要自定义输出路径,无论那是什么,只需进行正常的Gradle构建和运行即可。