Reputation: 6891
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.
Upvotes: 226
Views: 274624
Reputation: 31
Importantly, I had the same problem. I solved this problem by downloading Flutter at this address
I suggest you try the lower versions of Flutter.
Click here to download the filter
Download the desired version and save it in a specified path.
Go to the following path in Android Studio:
Android Studio → menu File → Settings → Plugins
through the settings button install plugin from disk Select and select the downloaded file and that's it. Just restart Android Studio.
Upvotes: 0
Reputation: 346
Just update Flutter SDK using
flutter upgrade
It solved my all issues.
Running flutter doctor...
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.5.0, on Microsoft Windows [Version 10.0.19043.1110], locale en-IN)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Chrome - develop for the web
[√] Android Studio (version 4.2)
[√] Android Studio (version 2020.3)
[√] IntelliJ IDEA Ultimate Edition (version 2020.2)
[√] VS Code (version 1.60.0)
[√] Connected device (3 available)
Upvotes: 2
Reputation: 93
Final i resolved this issue to run below command. I am using android 4.2 and OS is Mac
ln -s ~/Library/Application\ Support/Google/AndroidStudio4.2/plugins ~/Library/Application\ Support/AndroidStudio4.2
Upvotes: -1
Reputation: 2310
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.
Upvotes: -1
Reputation: 644
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):
flutter channel dev
flutter upgrade
flutter config --android-studio-dir="C:\Program Files\Android\Android Studio"
Upvotes: 53
Reputation: 143
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.
Upvotes: 1
Reputation: 46
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 File → Settings → Plugins → search for "flutter" and "dart" and install them. Make sure you got this.
Oh, you can upgrade to a new version just by typing flutter upgrade
.
Upvotes: 1
Reputation: 209
I was facing the same problem a few days back. Here's what worked for me,
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.
Run flutter doctor
again; hopefully, it wouldn't show any issues now
Upvotes: -1
Reputation: 338
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.
Upvotes: 0
Reputation: 168
Run this command in Terminal:
flutter config --android-sdk C:\Users\CHAMOD\AppData\Local\Android\Sdk
Then restart the IDE.
Upvotes: 1
Reputation: 687
I had the same issue, but I fixed it just after running these commands:
flutter channel dev
flutter doctor
flutter channel master
flutter doctor
Upvotes: 26
Reputation: 1335
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.
Upvotes: 90
Reputation: 53
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).
2- Also open visual studio code and add flutter extension.
3- And run flutter doctor --android-licenses
if the problem persist try flutter upgrade
good luck!
Upvotes: 2
Reputation: 38029
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.
Upvotes: 428
Reputation: 2206
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
Open Android Studio, menu File → Settings → Plugins and make sure you have Flutter and Dart installed
Go to Visual Studio Code to Extensions and install the Flutter and Dart extensions
Upvotes: 3
Reputation: 53
I’ve just had this problem after an update and I solved it entering menu File → Settings → Plugins. 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.
Upvotes: 1
Reputation: 11
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
Upvotes: 1
Reputation: 3592
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.
Upvotes: 10
Reputation: 61
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.
Upvotes: 6
Reputation: 23
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.
Upvotes: 1
Reputation: 3162
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:
Upvotes: 12
Reputation: 101
You missed this step in the installation process.
Install the Flutter and Dart plugins:
If are using Visual Studio Code, to install the Flutter and Dart plugins:
install
, and select Extensions: Install Extensions.flutter
in the extensions search field, select Flutter in the list, and click Install. This also installs the required Dart plugin.doctor
, and select the Flutter: Run Flutter Doctor.Review the output in the OUTPUT pane for any issues.
Upvotes: 7
Reputation: 442
The problem is with installing the required Flutter and Dart plugins. There are two ways in which you can achieve this:
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.
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
.
Upvotes: 10
Reputation: 4280
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:
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
androidflutterdartflutter-doctor
Upvotes: 105
Reputation: 6891
Linux users: I cd
'd into my home directory, added
export PATH="$PATH:/home/frodo/flutter/bin/flutter"
in the .bashrc
file, and source
ed 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
Upvotes: 9
Reputation: 766
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?
Upvotes: 14
Reputation: 80934
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 File → Settings → Plugins → 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.
Upvotes: 8
Reputation: 29
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.
Upvotes: 0
Reputation: 571
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.
Upvotes: 41
Reputation: 21
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.
Upvotes: 2