How to fix Flutter doctor android studio plugin(Dart , Flutter) issue?

3.5k views Asked by At

I installed the latest version of the Android Studio(4.1.1), the latest version of Flutter (Flutter 1.22.4 • channel stable). I installed the Dart & Flutter plugin in Android Studio. But the flutter doctor gives the plug-in is not installed issue.

enter image description here

Here is flutter doctor command result:

[√] Flutter (Channel stable, 1.22.4, on Microsoft Windows [Version 10.0.16299.19], locale en-US)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[!] Android Studio (version 4.1.0)
    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.

I set the android studio config path

   flutter config --android-studio dir="C:\Program Files\Android\Android Studio"

But the result is the same.

2

There are 2 answers

1
AudioBubble On BEST ANSWER
flutter upgrade

flutter config --android-studio-dir="C:\Program Files\Android\Android Studio"

flutter doctor -v

then if the issue still persists then just shift to the beta channel and the upgrade flutter then it will fix it.

flutter channel stable

flutter upgrade

Run the above commands in terminal.

0
Rahul Deo Ranjan On

(Android toolchain) issue: you need to install android studio, if already installed, you need to restart your system and then RUN the following on command prompt

flutter doctor --android-licenses

enter image description here

and you will need to accept all terms and conditions.

(Android Studio) issue: you need to set the following:

flutter config --android-studio-dir="C:\Program Files\Android\Android Studio\"