Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LogCat Missing from Android Studio 3.1.3

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)

image showing the missing alt-6 from Tool Windows


image showing the missing LogCat tab

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.

like image 223
Elie Fayad Avatar asked Jul 17 '18 12:07

Elie Fayad


People also ask

Can not find Logcat in Android Studio?

Click View > Tool Windows > Logcat (or click Logcat in the tool window bar).

Why is my Logcat empty Android Studio?

Go to the File option > click on “INVALIDATE CACHES/RESTART” then a dialog box will pop up, Select the “INVALIDATE CACHES/RESTART” button. This will automatically restart and build the index of android studio.

Where is Logcat stored?

Windows: C:\Users\[username]\AppData\Local\Android\sdk\platform-tools> adb logcat -G 32M; adb shell setprop persist. log. tag.


2 Answers

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.

Logcat UNLOCKED

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.

like image 71
avrahamy Avatar answered Sep 18 '22 14:09

avrahamy


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

like image 26
Behzad Fattahi Avatar answered Sep 17 '22 14:09

Behzad Fattahi