I\'m using Android Studio for Flutter App Development. Everything seems to be working fine just that the Android Studio does not show the \"logs\" in Logcat
Looks like everything works once you properly configure Android SDK in project settings.
Some more details here: https://github.com/flutter/flutter/issues/16691
Go to Setting/Preferences -> Languages & Framework -> Flutter -> Check or uncheck Replace the Run and Debug console with an experimental Flutter Loggin view
I found a solution worked for me:
for MacOS: Go to: /Users/userName/Library/Preferences/AndroidStudio3.4/options Find "runner.layout.xml" Change the name of this file for ex: runner01.layout.xml Restart Android studio
for Windows: 1- Focus "Run" tab (click on tab header, not on its body) 2- Ctrl+Shift+A, find and click "Restore Layout"
References: https://github.com/flutter/flutter/issues/25835 https://github.com/flutter/flutter-intellij/issues/3673#issuecomment-517356243
Hopefully, it helps.
Switch to the “Run” tab to see the logs and if you want to insert logs (like Log.d()
in android), you can use print()
function and whatever string you pass into it will be printed into the “Run” window.
Flutter has not logcat flutter show error in the console inside Run tab.IF you want to see error and crash report click on run tab.