如何显示 Android 工作室的消息窗口?

当我生成一个项目并且出现错误时,显示所有错误的“消息”窗口并不总是显示。我必须建立项目(即 Ctrl + F9)两次或更多,以便看到窗口。

当窗口没有显示时,查看 > 工具 > 消息 Alt + 0是灰色的,如下面的截图所示。当存在构建错误时,如何显示窗口?

我在 Windows8上运行最新的 Android Studio。

Android Studio Messages Windows disabled

2018-04-02

Android Studio 3.1似乎删除了这个窗口,许多人可能因为不同的原因错过了消息窗口而来到这里,Yuval 的答案可能是正确的。

70260 次浏览

It was a bit different in my case. I just closed the Message Tool Window with this red cross on the left and then this window completely disappeared and would not show again even after several rebuilds, View > Tool > Messages Alt+0 was also grayed out. The only thing that helped to bring the Window back is to break the build, so it would be some compiler errors. After that the window has reappeared showing those errors. Now the window is still there, does not vanish. Hope this helps somebody.

Build -> Make Project

(Ctrl+F9 or F9)

I got here after upgrading to Android Studio 3.1, in which they removed the Messages window, replacing it with the Build window. After some poking around, I found this button on the left side of the Build window:

Toggle view

Clicking this button toggles the view between the new "Build" view and the old "Messages" view.

I hope this helps someone who has the same problem!

UPDATE: per suggestions in the comments, since this doesn't really answer the asked question, I opened it up as its own question: Where is the Messages Window in Android Studio 3.1

UPDATE 2: In Android Studio 3.3 the button now looks like this:

Toggle View 3.3

UPDATE 3: In Android Studio 3.6 the button is gone. Instead, the build window is permanently split between text output and visual output. If you can't find the text output, it might be fully collapsed, so look on the top right of the build window for something like this:

enter image description here

And try to drag it left to reveal the build window, like this:

enter image description here

Hope this helps!

Can't find the button @yuval provided, but here it is to toggle to show it enter image description here

Just to have the whole picture. Go to the Build and then on the left side of the window you will find your Messages icon.

How to access to the messages window.