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 b
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.
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 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
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!
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.
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.
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