'How to check Gradle project errors in IntelliJ?

In IntelliJ, if I have an ordinary Java project, when encounter an error, IntelliJ outputs clear error and location in the 'Run' window like the following:

enter image description here

However, I have another Gradle project, when run and encounter an error, I got something like this:

enter image description here

I tried the 3 options, but could not find useful information. How can I find out which line and what error is happening?



Solution 1:[1]

It turns out just click "run" above shows the error details: enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 one-hand-octopus