Restore LogCat window within Android Studio

喜你入骨 提交于 2019-11-26 17:29:13
rudy s

I think I still can find logcat in my installation of 0.1.1

Try pressing Alt+6 on Windows or CMD+6 on Mac.

Manoj Behera

Check if you have hidden it... Use Alt+6 to bring up the window and click on the button shown below 'Restore logcat view'

You can show it pressing Alt+6

Or...

Tools-> Android -> Android Device Monitor

will open a separate window

In Android Studio 3.4, In the case in which Logcat does not appear in View->ToolWindows->Logcat (in that case Alt+6 or CMD+6 will also not work), the way to get the logact window is:

  1. File->Profile or debug APK (choose an APK)
  2. Select new window or use current window.
  3. Logcat is now available through the menu (View->ToolWindows->Logcat) or through Alt+6 or CMD+6

Open a separate terminal and start adb with logcat. On my (linux) system;

~/android-studio/sdk/platform-tools/adb logcat

While I would be a little late for the party, it has been a few years and new version of Studio.

Today when you encounter the bug, your logcat would not be shown, to resolve this you would need to follow these steps:

  • Menu -> Build -> Make Project
  • in your settings.gradle comment out everything and sync.
  • uncomment everything and sync again.
  • Menu -> Build -> Make Project
  • Once the project build is done.. your Studio would be ready.

I have encountered several different bugs related to this issue, this scenario covers most of these cases.

In AndroidStudio menus click: View\Tool Windows\Android

way one :

you can use bin icon in logcat

way two: you can clear logcat after per lunch Edit Configuration > Miscellaneous

check Clear log before lunch

In Android Studio 2.3.2 you will have to click on "Android Monitor" panel at the bottom and "logcat" is a tab of this pannel. See attachment.

If you do not have this panel you will have to go to Your main menu and then View->ToolBar/ToolButtons/Statusbar/Navigationbar

In my case the window was also missing and "View -> ToolWindows -> Logcat (Alt + 6)" did not even exist. Pressing ALT+6 also had absolutely no effect whatsoever.

I fixed it this way:

  1. connect a device
  2. start ADB via Terminal ("> adb usb")
  3. stop it again (ctrl + c)
  4. close the Terminal window in the bottom left window next to the Event Log (via the red X)

After closing the terminal the Logcat window appeared in the tab list and the menu entry appeared in the "View -> ToolWindows" category.

I don't have enough rep to post HTML images but here's a before and after of the ToolWindow options

Choose "floating mode" then "Docker mode". It's worked for me!

Apparantly, when logcat is opened and Android Studio is switched to fullscreen mode and back, the logcat window is nowwhere to be found.

Solution:

Restart Android Studio.

Jass Jayasinghe

Search Android Monitor tab bottom of android studio screen. Click on it. It will display a window and there is a tab call logcat. If you can't see Android monitor tab, click Alt+G.

for me the device selection bar (or whatever it's actually called) in logcat tab doesn't show, to resolve this I had to move logcat to some other position (left/right) and move it back

Simply go to view option then select tool Windows then select whatever you want

Try going to Tools->Android->Enable ADB Integration

In my case it got automagically disabled

In my case, I see the window, but no messages in it. Only restart (studio version 1.5.1) brought the messages back.

Chanaka udaya

I hope you have installed the required drivers for debugging android programs on your machine. If that is the case, when you run an application from android studio in an actual device, it will pop up a message asking to enable logcat. If you have disabled that option, then you can enable the logcat view from Window menu -> Show view -> Logcat. Next time when you run your application on actual device or in an emulator, you can see the logcat is active.

If you are not able to view it with the above solution, you can view the logcat from command line by typing

adb logcat

You can view more information from here http://developer.android.com/tools/help/logcat.html

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