gpt4 book ai didi

java - "Cannot start compilation: the output path is not specified for module..."

转载 作者:IT老高 更新时间:2023-10-28 11:42:19 26 4
gpt4 key购买 nike

我有一个非常简单的 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 构建并运行。

最佳答案

您只需转到您的 Module settings > Project 并指定“项目编译器输出”并让您的模块继承自项目。 (为此,请转到 Modules > Paths > Inherit project

这对我有用。

关于java - "Cannot start compilation: the output path is not specified for module...",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23688702/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com