How to open Logcat when the Flutter project does not have a Logcat interface

The first method ha

When we were developing a Flutter project, we
often needed to view the logs, but found that there was no Logcat view, and we could only view the logs through the Console Tab in the Debug view.

Compared with Logcat, this Console Tab is much inferior in function. It does not have various levels of filtering and keyword filtering functions, and tools such as screenshots and screen recordings cannot be used.

To open the Logcat view, generally when insert image description hereimporting , it will prompt that the Android Framework has been detected. At this time, follow the prompts to click Import and set the Android Sdk.

 

But sometimes it is not the first imported project, and the Logcat view disappears inexplicably, and it cannot be found in various places.

At this time, you can open Project Structure, then switch to the Facets tab, and add an Android architecture under the current project. Then the Logcat view comes out.

—————————insert image description here———————

 The second method ha

The project cannot find Facets, what should I do? Create a new project and copy the old project into it.

Here I use the second method

insert image description here

Guess you like

Origin blog.csdn.net/ren1027538427/article/details/122815321
Recommended