211
votes

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.
29
On Windows > Android Studio > File > Settings > Plugins > Search for flutter > Install - Abdurakhmon
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. - MJ Montes
all of the solutions do not work for me. Notice, I installed flutter and dart plugin already. How can I resolve the problem ? - Mr Special
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. - Yusuf N
I get same problem, any best solution please - f_anto

29 Answers

413
votes

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.

101
votes
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

87
votes

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.

50
votes

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"
40
votes

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.

24
votes

I had the same issue, but I fixed it just after running these commands:

flutter channel dev
flutter doctor
flutter channel master
flutter doctor
14
votes

I had this problem when having multiple versions of Android Studio, and it doesn't look like you have multiple versions. But you do use IntelliJ IDEA Community Edition, so are you sure you did install the plugins in Android Studio?

10
votes

According to following images first install required Flutter and Dart plugins and then after downloading the Flutter SDK from official-flutter-sdk-download-page, add Flutter and Dart paths:

Enter image description here

9
votes

The problem is with installing the required Flutter and Dart plugins. There are two ways in which you can achieve this:

  1. Go to Android studio → Settings → plugins → in the search bar search for Flutter and Dart plugins. If you are installing Flutter first, then Dart may get automatically installed along with it; otherwise install them separately.

  2. If you are using Visual Studio Code, in the activity bar click on extensions or press Ctrl + Shift + X. There you can search for Flutter and Dart plugins.

Now type flutter doctor.

9
votes

IntelliJ IDEA and Android Studio were installed on my machine. I deleted IntelliJ IDEA, because I have installed the Dart and Flutter plugins in Android Studio. Then the flutter doctor command works perfectly.

8
votes

When you execute the flutter doctor command it checks your environment and displays a report to the terminal window. In your case it seems that you did not install the Dart and Flutter plugin to be able to use them in Android Studio.

To install a plugin, click on menu FileSettingsPlugins → Install JetBrains plugins

The plugins will add new functionalities to Android Studio related to Flutter. Example: it will add the Flutter inspector, outliner.

The SDK that you added to the path will be needed when creating a new Flutter project.

Enter image description here

8
votes

Linux users: I cd'd into my home directory, added
export PATH="$PATH:/home/frodo/flutter/bin/flutter" in the .bashrc file, and sourceed it to refresh the .bashrc file. It depends on where you moved your Flutter SDK.

Then I run flutter doctor. I got the following results:

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)
[✓] IntelliJ IDEA Community Edition (version 2018.2)
[!] VS Code (version 1.25.1)
[!] Connected devices
    ! No devices available

To export the Flutter path permanently:

export PATH="$PATH:/path/to/dir" in the .bashrc file

For example:

export PATH="$PATH:/home/frodo/flutter/bin/flutter"

And run:

source .bashrc

How to permanently set $PATH on Linux/Unix

6
votes

You missed this step in the installation process.

Install the Flutter and Dart plugins:

  • Start Android Studio.
  • Open plugin preferences (File → Settings → Plugins on Windows & Linux OR Preferences → Plugins on macOS).
  • Select Browse repositories, select the Flutter plugin and click Install.
  • Click Yes when prompted to install the Dart plugin.
  • Click Restart when prompted.

If are using Visual Studio Code, to install the Flutter and Dart plugins:

  • Start Visual Studio Code.
  • Invoke View → Command Palette.
  • Type install, and select Extensions: Install Extensions.
  • Type flutter in the extensions search field, select Flutter in the list, and click Install. This also installs the required Dart plugin.
  • Validate your setup with the Flutter Doctor
  • Invoke View → Command Palette….
  • Type doctor, and select the Flutter: Run Flutter Doctor.

Review the output in the OUTPUT pane for any issues.

6
votes

I met a similar error after updating Android Studio, and it turns out I need to update the existing Flutter plugin.

To fix it, go to Android Studio → Preferences → Plugins → Installed → update your installed Flutter plugin.

3
votes

The best way to install it on Windows

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 1.20.1, on Microsoft Windows [Version 10.0.18363.959], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
[√] Android Studio (version 4.0)
[√] VS Code (version 1.47.3)
[!] Connected device
    ! No devices available
  1. Open Android Studio, menu FileSettingsPlugins and make sure you have Flutter and Dart installed

    Enter image description here

  2. Go to Visual Studio Code to Extensions and install the Flutter and Dart extensions

    Enter image description here

3
votes

You can just install the Flutter and Dart plugin in Android Studio by following these steps:

  1. Start the Android Studio application
  2. Open plugin preferences (PreferencesPlugins on macOS, menu FileSettingsPlugins on Windows and Linux).
  3. Select Marketplace…, search the Flutter plugin, and click Install.
  4. Click Yes when prompted to install the Dart plugin.
  5. Click on Apply and OK.
  6. Click "Restart" on the popup.

The below image indicates where you should do it:

Enter image description here

2
votes

I solved this by opening the plugin in settings, where under the 'installed' tab, I noticed the blue text 'Plugin homepage' which was a shortcut to the JetBrains plugins. There was an agreement which I had to accept to get the full functionality. I did accept and I also edited my environment variables by adding path to the bin of dart-SDK. Previously I only had the bin of flutter added to path. Anyway, this solved my problem.

2
votes

According to this comment, the plugins warnings doesn't matter. At least it didn't matter for me, and it's worked fine.

As stated,

hi @EastCartel, try with flutter config --android-studio-dir=C:\Program Files\Android\Android Studio or your correct path. and you have 3 issues.

1- First open your android studio and add the flutter plugin (this automaticly add dart plugin too).

enter image description here

2- Also open visual studio code and add flutter extension.

enter image description here

3- And run flutter doctor --android-licenses

enter image description here

if the problem persist try flutter upgrade

good luck!

1
votes

If you are using Visual Studio Code then navigate to extensions and search for Flutter. Then simply install it and you must take care that you have already installed Dart there.

After that, if it doesn't work, then copy your Flutter bin path that you can locate at C/'flutter-SDK-path'/bin. Then copy it and add it to the environment variable and add it to that path, so you can easily be able to access Flutter.

If you are using Android Studio then the already-stated article help you.

And make sure that you have latest versions of SDKs and Android Studio or Visual Studio Code. So that versions can't introduce any error.

1
votes

I solved this problem by uninstalling Flutter from the Plugins. After restarting Android Studio, I opened the plugins, and then it shows that my Dart plugin is not compatible with my Android Studio (v3.6).

I updated Dart, restarted Android Studio, and then reinstalled Flutter again. After that, I have to set the SDK path for the Flutter and voilà everything works now :D

1
votes

I’ve just had this problem after an update and I solved it entering menu FileSettingsPlugins. Then at the top of the window there are two options: Marketplace and Installed. Then I clicked on Installed and on the Flutter plugin there’s was a message saying that the current version of Flutter does not support the new version of Android Studio, so there was a green button written “Restart”. Then I clicked and when it opened again, the problem disappeared.

It may not be the same for you, but many people will search for it here and it may help someone.

1
votes

Run this command in Terminal:

flutter config --android-sdk C:\Users\CHAMOD\AppData\Local\Android\Sdk

Then restart the IDE.

1
votes

I was also facing these issues and found these solutions.

You've to install both "Flutter" and "Dart" plugins from MarketPlace.

For Windows: Android Studio → menu FileSettingsPlugins → search for "flutter" and "dart" and install them. Make sure you got this.

You may be needed to update them

Now make sure you have set the SDK paths for both SDK path for Dart SDK path for Flutter

Now enjoy the fresh Flutter enter image description here

Oh, you can upgrade to a new version just by typing flutter upgrade.

1
votes

If you are using only VSCode for development then you don't need to install plugins for Android Studio and vice versa. It will never give you a problem.

0
votes

If you have installed Android Studio more than one time, the command prompt or PowerShell assigned on the first one and maybe you are running the second one. So, browse for Android Studio, if you have more than one installation, delete the first one. Then, download the Plugins in Android Studio by following theese steps.

Step 1:Studio --> File --> Settings --> Plugins --> Browse Repositories

Step 2: Search for Flutter and download it

Step 3: When you're done restart Android Studio.

0
votes

You have to install Flutter and Dart both on Visual Studio Code as well as Android Studio!

Try using the following command:

flutter doctor --android-licenses, and press y to install all licenses.

result

0
votes

I had the same issue and can not fix by myself.

However, by using Visual Studio Code, it works fine. That error does not matter.

-1
votes

I was facing the same problem a few days back. Here's what worked for me,

  1. Run the following commands

    flutter channel beta
    flutter upgrade
    flutter config --enable-web
    

    The snippet's main purpose is to enable web support for Flutter, but it also changes the release channel and updates the Flutter SDK to the latest version.

  2. Run flutter doctor again; hopefully, it wouldn't show any issues now

-1
votes

In my case, I wasn't able to enable the plugin because I've recently updated to version 4.2.2 in Android Studio and I've checked out a Flutter SDK version which was not a stable version.

After I changed to a stable version while using fvm and re-install the plugin, it worked like a charm.