Flutter plugin not installed error; When running 'flutter doctor'

253,452

Solution 1

Safe fix for Mac (Android Studio 4.1+). It is in a different directory now, but the symbolic link helps.

Just run this command in the Terminal:

ln -s ~/Library/Application\ Support/Google/AndroidStudio4.1/plugins ~/Library/Application\ Support/AndroidStudio4.1

If you have a different Android Studio version or an installation folder, adjust the command accordingly.

Solution 2

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.9.4, on Linux, locale en_IN)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.1)
[✓] Android Studio (version 3.1)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[!] Connected devices
    ! No devices available

A solution that worked for me:

  1. Just install plugins. Android Studio → menu FileSettingsPluginsBrowse Repositories
  2. Search for "flutter".
  3. Tap on Install (a dialog will pop regarding the Dart dependency. Click Yes).
  4. Once the installation is finished restart Android Studio.

enter image description here

Now run flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.9.4, on Linux, locale en_IN)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.1)
[✓] Android Studio (version 3.1)
[!] Connected devices
    ! No devices available

Solution 3

I had the same issue and none of the above answers fixed it, so I went to the Flutter official GitHub repository and found the answer there. Here is the link and you have to follow all these steps.

https://github.com/flutter/flutter/issues/67986

Flutter upgrade

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

For Mac, you can do the following as answered by Andrew:

ln -s ~/Library/Application\ Support/Google/AndroidStudio4.1/plugins ~/Library/Application\ Support/AndroidStudio4.1

flutter doctor -v

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

Flutter channel beta

Flutter upgrade

You can enable Flutter web as an optional step.

Solution 4

For those who still have this error, even if they have tried the solutions mentioned before, try this. It works on Windows 10, macOS, and Linux (run in the command line):

  1. flutter channel dev
  2. flutter upgrade
  3. flutter config --android-studio-dir="C:\Program Files\Android\Android Studio"

Solution 5

The issue is just that "flutter doctor" is not able to read behind the scene that everything is fine and up to date. This issue is temporary (till next patch or update) and can be avoided as it won't affect anywhere in the development process.

This is a frequently occurring issue when we are updating a newer version of Flutter. Recently also upon updating to Flutter 1.22.1(Stable), it throws a "Plugins Not installed" error, while they are installed and up to date. Uninstalling and reinstalling will also not work as Android Studio will again pick the same version to install.

Share:
253,452

Related videos on Youtube

Philip Mutua
Author by

Philip Mutua

BY DAY: compose python/typescript/javascript stuff @ work I do different diverse projects. An interesting project recently caught my eye involving blockchain tech. I help people on all the company's projects where I can. BY NIGHT: with fam, friends, enjoying the simple things in life, coding python/typescript/javascript stuff, sometimes I'll find myself answering StackOverflow questions.

Updated on December 26, 2021

Comments

  • Philip Mutua
    Philip Mutua over 2 years

    I am configuring the Flutter SDK on my Linux Ubuntu 16.04 (Xenial Xerus) system. Why am I getting the following error when I run the flutter doctor?

    I have specified both PATHS for flutter and dart in the .bashrc file, but I get this error when I run flutter doctor:

    Doctor summary (to see all details, run flutter doctor -v):
    [✓] Flutter (Channel beta, v0.5.1, on Linux, locale en_US.UTF-8)
    [✓] Android toolchain - develop for Android devices (Android SDK 28.0.2)
    [✓] Android Studio (version 3.1)
        ✗ Flutter plugin not installed; this adds Flutter specific functionality.
        ✗ Dart plugin not installed; this adds Dart specific functionality.
    [✓] IntelliJ IDEA Community Edition (version 2018.2)
    [!] VS Code (version 1.25.1)
    [!] Connected devices
        ! No devices available
    
    ! Doctor found issues in 2 categories.
    
    • Günter Zöchbauer
      Günter Zöchbauer over 5 years
      I think you just need to update to a newer Flutter version.
    • Abdurakhmon
      Abdurakhmon almost 5 years
      On Windows > Android Studio > File > Settings > Plugins > Search for flutter > Install
    • MJ Montes
      MJ Montes almost 5 years
      You can ignore that if you;re not using Android Studio in Flutter Development. By default, Flutter and Dart plugins are not installed in Android Studio. You still need to manually install them. I would recommend VSCode in flutter development since it's lightweight.
    • Roman Soviak
      Roman Soviak almost 5 years
      In my case I had projects with different gradle versions. So in gradle-wrapper.properties I set distributionUrl=https\://services.gradle.org/distributions/g‌​radle-4.10.2-all.zip and in build.gradle dependencies { classpath 'com.android.tools.build:gradle:3.2.1' }
    • 151291
      151291 almost 5 years
      But not required if you use Visual Studio Code I think.
    • Mr Special
      Mr Special over 4 years
      all of the solutions do not work for me. Notice, I installed flutter and dart plugin already. How can I resolve the problem ?
    • F_Z
      F_Z about 4 years
      Please answer these two questions. I am stuck here.. stackoverflow.com/questions/61338060/… stackoverflow.com/questions/61338362/…
    • Yusuf N
      Yusuf N over 3 years
      This happens when flutter doctor cannot find the Android Studio plugins. It's an issue between flutter version and Android Studio version. For example, Android Studio 4.1 stores the plugins in ~/.local/share/Google/AndroidStudio4.1, and obviously flutter doesn't know about this and most probably looks in some old location that doesn't exist anymore.
    • Peternak Kode Channel
      Peternak Kode Channel over 3 years
      I get same problem, any best solution please
    • Wini
      Wini over 3 years
      here is my answer please give it a try stackoverflow.com/a/64962784/12553303
    • Yash Randive
      Yash Randive over 2 years
      flutter upgrade worked for me
  • Philip Mutua
    Philip Mutua over 5 years
    I already installed dart and their paths to .bashrc. When I type flutter or dart in the terminal. The command line shows me a list of commands to use for either dart or flutter.
  • Peter Haddad
    Peter Haddad over 5 years
    yes but u need to also install the flutter and dart plugins for android studio to be able to use their functionality inside android studio. When you install the flutter plugin for android studio and click file>new you will have a new option called "new flutter project"
  • Mr Special
    Mr Special over 4 years
    I installed flutter and dart plugin already. it does not work :(. I use android studio 3.1
  • noobEinstien
    noobEinstien over 3 years
    @MrSpecial Did you installed Android studio in different path? I have the same issue. My installation path is different and plugin is stored in User path
  • Atul
    Atul over 3 years
    @noobEinstien How did you fix then?
  • noobEinstien
    noobEinstien over 3 years
    @Atul didn't fixed, They just showing available editors, it is not really matters.
  • Jaspal Singh Rathour
    Jaspal Singh Rathour over 3 years
    So this has just occurred in the new release? did you manage to fix it?
  • Ruchir Rai
    Ruchir Rai over 3 years
    Yes occurred this time also. It's better to ignore it. It is only a health report of our setup and should not be manipulated. It is in the knowledge of team flutter by now.
  • q8yas
    q8yas over 3 years
    hi brother, this work for me , can more explain for what this command do ?
  • Andrew
    Andrew over 3 years
    @q8yas Command just redirects flutter doctor to the different folder to find plugins (where they are now)
  • KeithB
    KeithB over 3 years
    This did not work for me, however, installing the plugin manually via the Android Studio, like Paresh Mangukiya recommended, did work.
  • Maruf Hassan
    Maruf Hassan over 3 years
    Its a bug, my android studio runs flutter properly just doesn't show on flutter doctor -v . I am opening an issue on Github to notify the devs, hopefully it will be fixed in the next update.
  • Maki
    Maki over 3 years
    This worked on Windows 10, Flutter Beta and Android Studio 4.1.1. Thanks!
  • Jithin U. Ahmed
    Jithin U. Ahmed over 3 years
    This worked for me. Already installed the plugin. But same error was repeating. But this worked perfectly.
  • D B
    D B over 3 years
    I've faced with this problem before when I was developing Android app both in Android studio and Intellij Idea at the same time. Both of them was writing to the same folder in the local path. It maybe the same issue here as well.
  • Sobvan
    Sobvan over 3 years
    Switching to dev channel does seam to work on linux, too. Thanks for the tipp!
  • Janaka
    Janaka over 3 years
    I have the same problem. How do I fix this on windows 10?
  • David van Dugteren
    David van Dugteren over 3 years
    This worked for me as of 22 December 2020
  • drkvogel
    drkvogel over 3 years
    WFM - Android Studio 4.1, Flutter (Channel stable, 1.22.5, on Mac OS X 10.14.6 18G4032 darwin-x64, locale en-GB) - thanks!
  • Ahmad Darwesh
    Ahmad Darwesh over 3 years
    YOU ARE THE BEST Thanks
  • itsme.cvk
    itsme.cvk over 3 years
    It is interesting how this helped to fix the issue! Helped me. Thanks for posting.
  • Paul Stoner
    Paul Stoner over 3 years
    Still an issue in Flutter 1.22.5 (Stable)
  • davidzcode
    davidzcode over 3 years
    It works perfectly on Windows 10. Thanks !!
  • Shenk
    Shenk over 3 years
    What is this sorcery? +1
  • Gustanas
    Gustanas over 3 years
    Accepting the agreement did the trick for me, thank you!
  • YEG
    YEG about 3 years
    This worked for me as of February 7, 2021
  • Syed Arsalan Kazmi
    Syed Arsalan Kazmi about 3 years
    a happy user from Mac too!
  • Haya SVU
    Haya SVU about 3 years
    Thaaaaaanks <3 Worked for me on Win 10
  • BNetz
    BNetz about 3 years
    didn't work for me with Android Studio 4.2b4 as of February 13, 2021
  • Hugo H
    Hugo H about 3 years
    @BNetz you should check your android studio 4.2 path and update the given command with according path.
  • ItamarG
    ItamarG about 3 years
    Worked for me on ubuntu 20.04!
  • David Airapetyan
    David Airapetyan about 3 years
    Had this problem with stable Flutter (1.22.6) and Android Studio 4.1.2, and switching Flutter to the beta channel (1.26.0-17.6.pre) solved the problem for me.
  • BNetz
    BNetz about 3 years
    So the second path is exact like the first one just one directory-level higher?
  • Doc Kodam
    Doc Kodam about 3 years
    Still an issue in Flutter 1.22.6 (Stable)
  • Ruchir Rai
    Ruchir Rai about 3 years
    Unfortunately, yes. It can't be understood why this left pending by the Flutter team. There are some other such small bugs that have been reported to the developers and have been taken into account but haven't been solved. Funny thing is that the beta versions are free from few of these bugs (haven't tested the latest one though).
  • Peter Mortensen
    Peter Mortensen about 3 years
    What environment variable (name)? PATH? Or another one?
  • Oussama Makhlouk
    Oussama Makhlouk almost 3 years
    Thanks Cheers !
  • AWP
    AWP over 2 years
    Because I seem to come back here every month or so... this is the command for Arctic Fox that worked for me: ln -s ~/Library/Application\ Support/Google/AndroidStudio2020.3/plugins ~/Library/Application\ Support/AndroidStudio2020.3