问题
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.
- Go to File > Open
- Select the folder with the 'app' folder inside your project
- 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:-
- Open Android Studio.
- Open Android Monitor Window(at the bottom of android studio).
- Here you will see the drop down in right corner.
- Select Show only selected Application.
来源:https://stackoverflow.com/questions/51381604/logcat-missing-from-android-studio-3-1-3