I am configuring Flutter SDK
on my Linux Ubuntu 16.4
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
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.
This question is related to
android-studio
flutter
dart
flutter-sdk
flutter-doctor
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.
I had the same issue but fixed just after running these commands:
flutter channel dev
flutter doctor
flutter channel master
flutter doctor
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 Files>Settings>Plugins>install jetbrain 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.
flutter config --android-sdk C:\Users\CHAMOD\AppData\Local\Android\Sdk
run this command in Terminal.
then restart the IDE
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.
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, restart android studio, then reinstall Flutter again. After that, I have to set the SDK path for the Flutter and voila everything works now :D
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.
hello everyone I had the same issue and non of the above answers fixed so I went to the flutter official GitHub 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 persistes then just shift to the beta channel and the upgrade flutter then it will fix it.
flutter channel beta
flutter upgrade
you can enable flutter web as an optional steps
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 VScode, 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.
The best way to install it on Windows
Doctor summary (to see all details, run flutter doctor -v):
[v] Flutter (Channel stable, 1.20.1, on Microsoft Windows [Version 10.0.18363.959], locale en-US)
[v] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
[v] Android Studio (version 4.0)
[v] VS Code (version 1.47.3)
[!] Connected device
! No devices available
1- Open Android Studio File->Settings->Plugins and Make Sure You have Flutter and Dart Installed
2- Go to VSCode to Extensions and install Flutter and Dart Extension
Hope It Solved the problem
I met similar error after updating android studio, 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
I’ve just had this problem after an update and I solved entering File/Settings/Plugins. Then at the top of the window there are two options: Marketplace and Installed, then I clicked on Installed and on Flutter plugin there’s was 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. May not be the same for you, but many people will search for it here and may help someone.
LINUX USERS: I cd
'd into my home directory then I added
export PATH="$PATH:/home/frodo/flutter/bin/flutter"
in .bashrc
file and source
ed it to refresh the .bashrc
. 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 flutter path permanently :
export PATH="$PATH:/path/to/dir"
in the .bashrc
For example:
export PATH="$PATH:/home/frodo/flutter/bin/flutter"
And run:
source .bashrc
Same issue, and can not fix by myself.
However by using VSCode, it works fine, that error does NOT matter.
According to following images first install required flutter
and dart
plugins and then after downloading Flutter sdk from official-flutter-sdk-download-page, add flutter and dart paths:
I had this problem when having multiple versions of Android Studio, 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?.
I would have said this in a comment but I dont have enough rep
According to this comment, the plugins warnings doesn't matter. At least it didn't matter for me, 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!
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.
If you are using VSCode then navigate to extensions and search for flutter.Then simply install it and must take care that you have already installed dart there and 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 environment variable and add it to that path so,you can easily be able to access flutter.I hope it works.
If you are using Android Studio then may already stated article help you. And make sure that you have latest versions of SDKs and Android Studio or VSCode.so that versions can't introduce any error. Hope it work.
You can just install the Flutter and Dart plugin in the android studio by following these steps:
The below image indicates where you should do it
IntelliJ IDEA
and Android Studio
were installed on my machine. I deleted IntelliJ IDEA
because i have installed Dart
and Flutter
plugins on Android Studio. Then flutter doctor
command works perfectly, maybe it is useful someone.
Safe fix for Mac (Android studio 4.1+) It is in a different directory now, but symlink helps.
Just run in the Terminal this command
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.
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"
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.
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
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
Source: Stackoverflow.com