LogCat Missing from Android Studio 3.1.3

Deadly 提交于 2019-12-06 19:10:26

问题


I recently installed Android Studio 3.1.3 on my laptop in order to start learning android/mobile development (I am still new to all of this). The LogCat option seems to be missing though (refer to images below)


What I tried to do in order to fix the problem:

-uninstalling and reinstalling android studio (along with updating it...)

-researching the problem (no useful results as all the solutions were to press alt-6 or go to View->Tool Windows)

It would be a huge help/relief if someone knows how to solve this problem. Thanks in advance.


回答1:


I know it is an old question, but I encountered this problem at least twice so it might help someone.

The problem seems to be the path of the project you're looking at. It should be pointing to the folder containing the 'app' and 'gradle' folders inside your project.

  1. Go to File > Open
  2. Select the folder with the 'app' folder inside your project
  3. Press 'Open'

If you see something like this you can now probably open the Logcat window with alt-6 or View->Tool Windows.

Note that for some reason, it didn't work for me at first until I opened the app folder, run a build and then opened the folder containing the app folder.




回答2:


You need to sync your project and then Logcat will show up




回答3:


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




回答4:


Just in case anyone stumbles upon this as I did: If you are developing a react-native app, be sure that you import only the android folder of the project. If you import the whole project, then among other things, logcat is nowhere to be found!




回答5:


Press Alt+6 inside Android Studio to open Logcat monitor.

Then, Do the following steps:-

  1. Open Android Studio.
  2. Open Android Monitor Window(at the bottom of android studio).
  3. Here you will see the drop down in right corner.
  4. Select Show only selected Application.


来源:https://stackoverflow.com/questions/51381604/logcat-missing-from-android-studio-3-1-3

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