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
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
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.
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 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.
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
How to permanently set $PATH on LINUX/UNIX
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.