“Cannot start compilation: the output path is not specified for module…”

后端 未结 12 2394
忘掉有多难
忘掉有多难 2020-12-13 08:43

I have a very simple Java + Gradle project. It builds fine. It runs fine from the shell with \"gradle run\". However, if I try to run inside of IntelliJ, I get:



        
12条回答
  •  臣服心动
    2020-12-13 09:15

    I get this error too when creating a project in IntelliJ without using a template.

    I have 2 SDKs installed: Amazon Corretto and java version 11.0.4 and so, what I do when I have this error is "change the SDK" it usually works fine with Corretto

    to do that you need to click on File (in IntelliJ)/ Project Structure / Project / Project SDK: select corretto from the dropdown list (or check the option in your computer) as shown here

    hope this will work for you too

    Best, Constantin

提交回复
热议问题