Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
515 views
in Technique[技术] by (71.8m points)

Android Studio 4.1.2 - Dart And Flutter is not installed in "flutter doctor"

I've recently installed android studio 4.1.2 with flutter 1.22.6 even though I installed flutter and dart plugins in android studio the result of 'flutter doctor' command was as follows.

[√] Flutter (Channel stable, 1.22.1, on Microsoft Windows [Version 
  10.0.18362.30], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 
  30.0.2)
[!] Android Studio
     X Flutter plugin not installed; this adds Flutter specific functionality.
     X Dart plugin not installed; this adds Dart specific functionality.
[!] Connected device
! No devices available

! Doctor found issues in 2 categories.

Now for clear error act as below (Steps worked for me):

flutter channel dev
flutter upgrade
flutter config --android-studio-dir="C:Program FilesAndroidAndroid Studio"
flutter doctor -v
question from:https://stackoverflow.com/questions/65899006/android-studio-4-1-2-dart-and-flutter-is-not-installed-in-flutter-doctor

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

It is a problem in Flutter config detection. If you start Android Studio and plugins installed, you can use it and all functionality will works fine. You can find solutions in issue on GitHub.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...