flutter-intellij: Missing logcat tab in Android Studio

@anderscheow commented on Thu Oct 25 2018

Logcat tab does not appear in Flutter project but visible in Android project

Logs

[✓] Flutter (Channel dev, v0.10.1, on Mac OS X 10.14 18A391, locale en-MY)
    • Flutter version 0.10.1 at /Users/anders/flutter
    • Framework revision 6a3ff018b1 (5 days ago), 2018-10-18 18:38:26 -0400
    • Engine revision 3860a43379
    • Dart version 2.1.0-dev.7.1.flutter-b99bcfd309

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at /Users/anders/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.0, Build version 10A255
    • ios-deploy 2.0.0
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 29.1.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[!] IntelliJ IDEA Ultimate Edition (version 2018.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.io/intellij-setup/#installing-the-plugins

[!] VS Code (version 1.28.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (4 available)
    • SM T815Y                  • 3300ffc315341365                         • android-arm • Android 7.0 (API 24) (emulator)
    • HM 1S                     • d0925617                                 • android-arm • Android 4.4.4 (API 19)
    • Android SDK built for x86 • emulator-5554                            • android-x86 • Android 4.4.2 (API 19) (emulator)
    • Anders’ iPhone X          • fb459deb33528e3571bfac0a2e555307cc879773 • ios         • iOS 12.0.1

! Doctor found issues in 2 categories.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 23 (3 by maintainers)

Most upvoted comments

click “Event Log”

it will show “”“ 2019-10-11 10:10 Frameworks Detected Android framework is detected. Configure ”“”

click “Configure”, and it will show logcat

Had same issue until i did this:

Go to Project Structure -> Facets -> “+” Android -> Select Project -> voilá 😃

@stevemessick could you please explain me how to “open it when needed”? I’ve two windows of Android Studio opened, both Flutter projects, and one show me the logcat tab, but the other one doesn’t. In both the Android SDK is configured correctly. The window which doesn’t show the logcat tab doesn’t even list it under View -> Tool Windows (see attachment). The window which shows it is for a project recently created, while the one which doesn’t show it is for a project created about 6 months ago, not sure if it can makes a difference.

Screenshot from 2019-07-10 12-41-26 Screenshot from 2019-07-10 12-39-29

We’re taking no action here since logcat can be opened when needed.

@xiehongxin It worked like u described but the option in the Event Log did show only when an update in Android was triggered. e.g. a plugin was updated. I still would call this a defect and I am not sure why this was closed. This happen already a few time and I think it should be addressed and not ignored.

And the statement is wrong (by @stevemessick) that Logcat can be openend when needed. Logcat is not visible in the Tool menu. Please reopen @stevemessick

Had same issue until i did this:

Go to Project Structure -> Facets -> “+” Android -> Select Project -> voilá 😃

This worked for me. Thank you @MaximilianFrick

I too cannot get this working … anyone can help here. there is no Event like Android Framework detected it only show : The project ‘xyz’ is not a Gradle-based project. Logcat is the basic need of development. Need to get it working. Also it is not showing emulator in tool window. Need a fix for this. Reopen this.

I had the same issue on MacOs, and what helped me is: File > Project Structure > Modules > adding new Android module, everything with defaults. Then LogCat showed up.

I cant get this to work at all, this is infuriating, need logcat badly.

My flutter project suddenly can’t see the Logcat tab 😄 I just pulled the new source from github, and voila, Logcat tab is missing. And any View/Tool Windows … LogCat tab… Any way to show that Logcat again? 😄

Please reopen ticket. Issue is still happening.

If anyone interested, I eventually solved creating a new Flutter project and then overwriting all my ‘data’ into it, in details the folders: android, fonts, images, ios, lib, test, .git and then the files: .gitignore, README.md, pubspec.yaml. Everything else gets generated from Studio. After this trick, I see the logcat tab again.

I have the same issue. When I create a project myself (Windows) there is a logcat window in Android Studio. When I open a project from someone else (Mac) the logcat is missing.

Here is the documentation for the logcat tool: https://developer.android.com/studio/debug/am-logcat

What follows is speculation. (I’m not too familiar with Android Studio internals.)

I think the old project doesn’t show it because it was created from a template that did not enable logcat. Recent projects do enable it. It appears to be controlled by the ToolWindowManager section of the workspace config file (.idea/workspace.xml). Try comparing the workspace config files of your two projects and changing the one that does not include logcat to include it like the newer one does. You might get it enabled by deleting the workspace config file, but make a backup in case it doesn’t work.