Android Studio runs the Flutter project and cannot find the solution to the Logcat button

When we run the Fullter project, we find that the Logcat panel cannot be found under the View-Tool Windows in the AS status bar, and the logs output by the console cannot be seen. There are normal Android projects, and we can solve this situation through the following steps;
first Check the Android sdk version, mine is 30;

In the Project panel, right-click, and in the pop-up menu, select the "Open Module Settings" option, and select the Facets option;

 

Click the + button, select Android, and select your flutter project in the pop-up dialog box Choose Module. After the settings are complete, click the Apply and OK buttons;

 

 

At this point, the Logcat button will be displayed;

But at this time, the Please configure Android SDK prompt is displayed, and there is no log output;

 

 

Then click the configure button, and the following interface will pop up:

Click the drop-down menu of Module SDK, select your Android sdk version, my version is 30, here choose 30 SDK;

 After setting, click the Apply , OK button, and then it can be displayed normally.

Reproduced for reference: Android Studio runs the Flutter project, but the solution to the Logcat button cannot be found

Guess you like

Origin blog.csdn.net/qq_25062671/article/details/127975433