My hardware device: Mac computer with M1 chip, I installed Android Studio version: 4.2.2; I installed the version of The Flutter: 1.17.1. For development purposes, I installed the older version of the Flutter
- 1. The running result is as follows
-
2. Android license status is unknown
-
Terminal run the Flutter Doctor — Android-licenses command:
-
The error is resolved as follows
-
Run it again and the result is as follows
-
-
3. Solve the problem of running the Flutter Doctor when the Flutter and Dart plug-ins are actually installed but the plug-in is not installed.
-
The error is that the location of the plugin has changed for the version after Android Studio 4.1, but the old version of the flutter I installed still followed the path of the old Version of Android Studio plug-in, so I could not find the message not installed. The solution to this problem needs to be we installed plugins file according to the old path to create a copy, you can manually to copy, can also perform the following terminal command, pay attention to the corresponding AndroidStudio4.2, AndroidStudio4.1 etc version installed version replace yourself
-
Terminal command: Ln -s ~ / Library/Application/Support/Google/AndroidStudio4.2 / plugins ~ / Library/Application/Support/AndroidStudio4.2
-
4.1 after the new version of the plugin location: ~ / Library/Application/Support/Google/AndroidStudio4.1 / plugins
-
~/Library/Application/Support/AndroidStudio4.1
-
Run the Flutter doctor again and the results are as follows
-
-
Solve the problem: manually open the Xcode Simulator, or run the terminal command: open -a Simulator, open the Simulator
-
Rerunning Lutter Doctor results in the following
-