Intellij Idea not showing errors in Message Tool Window after Gradle build

こ雲淡風輕ζ 提交于 2019-11-30 17:26:49

In Intelij 16.2 I had this problem as well. In the top left corner of the "Run" window there is an odd looking button that when you mouse over is labeled "Toggle tasks executions/text mode." Click it and it will show you the output from the Gradle build instead of the steps in the task execution.

I had this problem on IntelliJ 2017.1, as well. The answer posted by BrianC on Aug 4 '16 helped me--however I found the button on the opposite side--on the left side of the Run window, therefore I am posting an image with the exact button.

When you hover over this button, it says 'Toggle tasks executions / text mode'. The image shows the button when selected.

Finally found the solution:

For some reason when creating gradle project or module Idea does not add automatically the java-gradle facet.

In order to get the errors in the Message Tool window you will have to add it to your module(s) like this:

File -> Project structure -> Facets

Click on the plus sign, select Java-gradle, select module, OK.

Please note that if you start the build from the Gradle tool window (the right side pane) errors will not be shown in the Message window. You will have to use the "normal" build in the IDE, e.g. Build -> Compile module.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!