Flutter plugin not installed error;. When running flutter doctor

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.


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

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.



I cd'd into my home directory then I added export PATH="$PATH:/home/frodo/flutter/bin/flutter" in .bashrc file and sourceed 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

Comments

Popular posts from this blog

Meaning of `{}` for return expression

Get current scroll position of ScrollView in React Native

flutter websocket connection issue