Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flutter and Dart plugin not installed warnings in flutter doctor #11940

Closed
alardizabal opened this issue Sep 5, 2017 · 79 comments
Closed

Flutter and Dart plugin not installed warnings in flutter doctor #11940

alardizabal opened this issue Sep 5, 2017 · 79 comments
Labels
t: flutter doctor Problem related to the "flutter doctor" tool tool Affects the "flutter" command-line tool. See also t: labels.

Comments

@alardizabal
Copy link

I'm using IntelliJ CE 2017.2.3 EAP and I get missing plugin warnings in flutter doctor when it seems like everything is installed properly and I have no issues building.

screen shot 2017-09-05 at 6 35 37 pm

screen shot 2017-09-05 at 6 36 43 pm

screen shot 2017-09-05 at 6 35 28 pm

screen shot 2017-09-05 at 6 36 56 pm

☆ flutter doctor
[✓] Flutter (on Mac OS X 10.12.6 16G29, locale en-US, channel master)
    • Flutter at /Users/albertlardizabal/dev/flutter
    • Framework revision 321b80961f (85 minutes ago), 2017-09-05 17:00:42 -0400
    • Engine revision 29e0c1c281
    • Tools Dart version 1.25.0-dev.11.0

[✓] Android toolchain - develop for Android devices (Android SDK 26.0.0)
    • Android SDK at /Users/albertlardizabal/Library/Android/sdk
    • Platform android-26, build-tools 26.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] iOS toolchain - develop for iOS devices (Xcode 8.3.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 8.3.3, Build version 8E3004b
    • ios-deploy 1.9.0
    • CocoaPods version 1.3.1

[✓] Android Studio
    • Android Studio at /Applications/Android Studio 3.0 Preview.app/Contents
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)

[✓] Android Studio (version 2.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[-] IntelliJ IDEA Community Edition (version EAP IC-172.3968.1)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.io/intellij-setup/#installing-the-plugins

[✓] Connected devices
    • Pixel                        • FA71A0302167                             • android-arm • Android 7.1.2 (API 25)
    • SM G930V                     • a674c503                                 • android-arm • Android 6.0.1 (API 23)
    • Albert Lardizabal's iPhone 6 • c0e109b7e55a826627aa0f3e79af8931534f3554 • ios         • iOS 11.0
    • iPhone                       • 2cb36c18cfeec63f6a68b3192f094aaf35a626d0 • ios         • iOS 10.0.2
@sunglim
Copy link

sunglim commented Sep 7, 2017

I recommend you setup again as described on https://flutter.io/setup-macos/
(at least, you are using master branch, but the manual uses 'alpha' branch)

@Hixie Hixie added tool Affects the "flutter" command-line tool. See also t: labels. t: flutter doctor Problem related to the "flutter doctor" tool labels May 18, 2018
@Hixie Hixie modified the milestones: Goals, Stretch Goals May 18, 2018
@Hixie
Copy link
Contributor

Hixie commented May 18, 2018

cc @devoncarew @tvolkert

@giteekasawlani
Copy link

I am having the same issue right now.
I have installed flutter and dart plugins and installed flutter SDK and set an environmental path for flutter.
While running flutter doctor command I am getting error and cant run project in android studio.

screenshot from 2018-05-21 16-48-09
screenshot from 2018-05-21 16-48-32
screenshot from 2018-05-21 16-48-46

@waihanko
Copy link

waihanko commented May 23, 2018

I alerady faced this issue but i solved by myself
-Uninstall Dart and flutter
-Restart android studio or intellij
-Install Dart and flutter and restart again

@bradh43
Copy link

bradh43 commented May 29, 2018

I found an alternative way to fix this issue. You can just install the Flutter and Dart plugin in android studio by following these steps:
1.) Start the Android Studio application
2.) Open plugin preferences (Preferences>Plugins on macOS, File>Settings>Plugins on Windows & Linux).
3.) Select Browse repositories…, select the Flutter plug-in and click install .
4.) Click Yes when prompted to install the Dart plugin.
5.) Click Restart when prompted.

@gitsofian
Copy link

working wonderfull

@arkapravoghosh
Copy link

Thanks for helping...:)

@TusharGogna
Copy link

I did what bradh43 said but I am still getting the following:
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.

They are installed and enabled, also the paths are set. I have also restarted the AS.

@XiaYongjie
Copy link

@giteekasawlani I have the same problem. Do you know how to solve it?

@TusharGogna
Copy link

I was able to resolve the issue. In my case, I was not using Stable Android Studio and when I installed the stable version 3.1.2, it worked as a charm and I was able to create an application.

@anthonyfok
Copy link

I think I am starting to understand the issue.

[✓] Android Studio (version 3.2)
    • Android Studio at /opt/google/android-studio
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b04)

According to packages/flutter_tools/lib/src/android/android_studio.dart, for Windows and Linux, flutter doctor is looking in

  • $HOME/.AndroidStudioX.Y (e.g., $HOME/.AndroidStudio3.1)

for the Flutter and Dart plugins, but for those of us running Beta or even Canary channel of Android Studio, the directory is actually here:

  • $HOME/.AndroidStudioPreviewX.Y (e.g., $HOME/.AndroidStudioPreview3.2)

The current code actually manages to find the $HOME/.AndroidStudioPreview3.2 directory correctly:

final RegExp _dotHomeStudioVersionMatcher =
    new RegExp(r'^\.AndroidStudio([^\d]*)([\d.]+)');

But elsewhere in the code, it does not use the above result, and instead hard-codes the plugin path like so:

      if (platform.isMacOS) {
        _pluginsPath = fs.path.join(
            homeDirPath,
            'Library',
            'Application Support',
            'AndroidStudio$major.$minor');
      } else {
        _pluginsPath = fs.path.join(homeDirPath,
            '.AndroidStudio$major.$minor',
            'config',
            'plugins');
      }

i.e. $HOME/AndroidStudio3.2/config/plugins, which does not exist today (3.2 is still in beta).

I am very new to Dart and do not know how to fix the code properly yet, but hope the Flutter authors could fix this. Many thanks!

@tribbled
Copy link

Got resolution! Followed bradh43's directions, got plugins installed, restarted Android Studio, and flutter doctor still said No Dart/Flutter plugins. But restarting the Mac fixed it, now flutter doctor gives Android Studio the checkmark. OSX 10.3.6, AS 3.1.3.

@admin95271
Copy link

中国的老哥无论是否翻墙都要配置国内镜像,否则common tools下载不成功

@xiaods
Copy link

xiaods commented Oct 13, 2018

@admin95271 don't worry. use proxy can directly download the library.

@lucktail
Copy link

lucktail commented Nov 1, 2018

我遇到了相同的问题,因为我的Android Studio是preview版本。我通过安装正式版的Android Studio version3.2.1 解决了这个问题

@cnscorpions
Copy link

@bradh43 it works, thank you

@jiayuanfa
Copy link

image

image

image

I am also the problem..

@zoechi
Copy link
Contributor

zoechi commented Dec 5, 2018

@jiayuanfa your Flutter install looks corrupted.
It says Flutter 0.9.5-pre.2 2018-12-05 (48 minutes ago) but if it were that new, it would be 0.11.x or 1.0.0. Please try https://github.com/flutter/flutter/wiki/Workarounds-for-common-issues#ways-to-fix to fix your Flutter install and then try again.
If it still doesn't work please post your flutter doctor -v

@tryer3000
Copy link

got the same problem.

following steps save me from this situation.
update as to 3.2.1
install plugins
restart as
ps: i'm using flutter 1.0.0

@Yuanuo
Copy link

Yuanuo commented Dec 7, 2018

Some people mentioned earlier have avoided or solved this problem by installing a stable version of Android Studio.

Let me talk about the solution for the preview version of Android Studio (tested on Windows 10).

I am using Android Studio Preview 3.4 (Canary 7). The default user directory is $HOME/.AndroidStudioPreview3.4. According to the above analysis of @anthonyfok (Link), it will actually look for $HOME/.AndroidStudio3.4, so create a directory link. This can solve the problem, such as (xxxx is username):

C:\Users\xxxx>mklink /J /D ".AndroidStudio3.4" C:\Users\xxxx\\.AndroidStudioPreview3.4

If you use a custom idea.properties, it is also possible to link directly to the actual directory, for example:

C:\Users\xxxx>mklink /J /D ".AndroidStudio3.4" E:\\.AndroidStudio

before fix:

[√] Android Studio
    • Android Studio at E:\IDE\Android-Studio
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    • android-studio-dir = E:\IDE\Android-Studio
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

after that :

[√] Android Studio (version 3.4)
    • Android Studio at E:\IDE\Android-Studio
    • Flutter plugin version 31.1.4
    • Dart plugin version 183.4733
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

@Diwas777
Copy link

Diwas777 commented Dec 24, 2018

Configure this :
1)Get path of android sdk (My Case : C:\Users\DIWAS\AppData\Local\Android\Sdk)
2)Open command on that path run below command
flutter config --android-sdk C:\Users\DIWAS\AppData\Local\Android\Sdk

@zoechi
Copy link
Contributor

zoechi commented Dec 27, 2018

@Diwas777 setting ANDROID_HOME=C:\Users\DIWAS\AppData\Local\Android\Sdk should do as well. Your approach needs to be done per project.

@olivrg
Copy link

olivrg commented Dec 30, 2018

I experienced this issue on Mac and even with @bradh43's instructions I was still seeing the same messages:
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.

So I fully uninstalled Android Studio and reinstalled the sdk with brew using @mrded's post on this link.

Everything worked fine after the reinstallation.

@fkomaralp
Copy link

fkomaralp commented Nov 16, 2020

Before

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.22.4, on Microsoft Windows [Version 10.0.19042.572], locale tr-TR)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[!] Android Studio (version 4.1.0)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.51.1)
    ! No devices available

Flutter's flutter and dart Android Studio 4.1 plugins are not not found by flutter. You need to switch to flutter dev with flutter channel dev command. And after that you need to run flutter doctor. Results are like that.

Checking Dart SDK version...
Downloading Dart SDK from Flutter engine 073263e39d1d12313c9622ac3788cc9f2b01f582...
Building flutter tool...
Running pub upgrade...
Downloading package sky_engine...                                  689ms
Downloading flutter_patched_sdk tools...                            4,3s
Downloading flutter_patched_sdk_product tools...                    4,4s
Downloading windows-x64 tools...                                    9,1s
Downloading windows-x64/font-subset tools...                     1.223ms
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, 1.24.0-7.0.pre, on Microsoft Windows [Version 10.0.19042.572], locale tr-TR)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Android Studio (version 4.1.0)
[✓] VS Code (version 1.51.1)
[!] Connected device
    ! No devices available

! Doctor found issues in 1 category.

But before all of this, you need to install flutter and dart plugins for Android Studio.

@serdarpolat
Copy link

change channel master to dev. then upgrade.

flutter channel dev
flutter channel upgrade

try again

flutter doctor

Note: I think it's Android Studio 4.1 issue...

@vmihda
Copy link

vmihda commented Nov 23, 2020

I had the same problem. Run the commands:

flutter channel dev
flutter doctor
flutter channel master
flutter doctor

Don't forget to install Dart and Flutter plugins for Android Studio.

@ItsCosmas
Copy link

I had the same problem. Run the commands:

flutter channel dev
flutter doctor
flutter channel master
flutter doctor

Don't forget to install Dart and Flutter plugins for Android Studio.

This worked like a charm

@Brackleycassinga
Copy link

Brackleycassinga commented Dec 2, 2020

This is a quick solution if your android studio cannot find the path :
Just got to the terminal and run flutter create nameofnewApp
then flutter run. After this, you should be able to run your app in android studio and find flutter with flutter doctor

@cikichen
Copy link

I had the same problem. Run the commands:

flutter channel dev
flutter doctor
flutter channel master
flutter doctor

Don't forget to install Dart and Flutter plugins for Android Studio.

flutter channel stable
flutter doctor
[✓] Flutter (Channel stable, 1.22.5, on macOS 11.0.1 20B29 darwin-arm, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
[!] Android Studio
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[!] Android Studio (version 4.1)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] IntelliJ IDEA Ultimate Edition (version 2020.3)
[✓] VS Code (version 1.52.0)
[!] Proxy Configuration
    ! NO_PROXY is not set
[✓] Connected device (1 available)

@ChaminduWeerasinghe
Copy link

ChaminduWeerasinghe commented Dec 25, 2020

If you are Linux User, try this
it works for me

@huzaifa18
Copy link

I solved this issue by simply updating the Dart and Flutter plugins!
image

@DyaryRaoof
Copy link

I have downgraded to android studio 3.6.3, still the same issue

@DyaryRaoof
Copy link

I had the same problem. Run the commands:

flutter channel dev
flutter doctor
flutter channel master
flutter doctor

Don't forget to install Dart and Flutter plugins for Android Studio.

what if you don't want to work on unstable dev channel ?

@ashishoffice
Copy link

✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.

Flutter 1.22.5 stable version issue

@ghost
Copy link

ghost commented Jan 6, 2021

I fix this problem

step1 : run> flutter channel dev
step2 : run> flutter channel updrade
step3 : run > flutter config --android-studio-dir="C:\Program Files\Android\Android Studio"

@pchavhere
Copy link

Before

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.22.4, on Microsoft Windows [Version 10.0.19042.572], locale tr-TR)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[!] Android Studio (version 4.1.0)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.51.1)
    ! No devices available

Flutter's flutter and dart Android Studio 4.1 plugins are not not found by flutter. You need to switch to flutter dev with flutter channel dev command. And after that you need to run flutter doctor. Results are like that.

Checking Dart SDK version...
Downloading Dart SDK from Flutter engine 073263e39d1d12313c9622ac3788cc9f2b01f582...
Building flutter tool...
Running pub upgrade...
Downloading package sky_engine...                                  689ms
Downloading flutter_patched_sdk tools...                            4,3s
Downloading flutter_patched_sdk_product tools...                    4,4s
Downloading windows-x64 tools...                                    9,1s
Downloading windows-x64/font-subset tools...                     1.223ms
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, 1.24.0-7.0.pre, on Microsoft Windows [Version 10.0.19042.572], locale tr-TR)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Android Studio (version 4.1.0)
[✓] VS Code (version 1.51.1)
[!] Connected device
    ! No devices available

! Doctor found issues in 1 category.

But before all of this, you need to install flutter and dart plugins for Android Studio.

Thanks for this... Really helpful 😃

@kayo-chan
Copy link

kayo-chan commented Jan 13, 2021

I had the same problem. Run the commands:

flutter channel dev
flutter doctor
flutter channel master
flutter doctor

Don't forget to install Dart and Flutter plugins for Android Studio.

This worked like a charm

This really works! At least it worked for me! No stress!!

@tehsunnliu
Copy link

I wonder why it works on dev and not in stable?

@saifamer2030
Copy link

try this line of code, worked for me

ln -s ~/Library/Application\ Support/Google/AndroidStudio4.1/plugins ~/Library/Application\ Support/AndroidStudio4.1

@kevintao0417
Copy link

中国的老哥无论是否翻墙都要配置国内镜像,否则common tools下载不成功

配置了还是不行啊……

@erperejildo
Copy link

change channel master to dev. then upgrade.

flutter channel dev
flutter channel upgrade

try again

flutter doctor

Note: I think it's Android Studio 4.1 issue...

this worked for me

@Mereep
Copy link

Mereep commented Feb 3, 2021

Same problem. Installed in alll-standard settings on fresh Mac. The plugins are both not recognized in current stable flutter.

@eerbee
Copy link

eerbee commented Feb 9, 2021

yes mine solved by switching to the dev channel, but why it cant work on stable channel?

@zjamshidi
Copy link

I had the same problem. Run the commands:

flutter channel dev
flutter doctor
flutter channel master
flutter doctor

Don't forget to install Dart and Flutter plugins for Android Studio.

It works for me, too. Thanks a tone

@tanveersalmangkn
Copy link

tanveersalmangkn commented Feb 17, 2021

I tried all of this but none worked for me. What I did was super easy and cool
I just run the command flutter clean and flutter run
and it worked like a charm :)

@gustiprp
Copy link

change channel master to dev. then upgrade.

flutter channel dev
flutter channel upgrade

try again

flutter doctor

Note: I think it's Android Studio 4.1 issue...

ist work

@exeptionerror

This comment was marked as spam.

@cjxonix
Copy link

cjxonix commented Jun 27, 2021

try this line of code, worked for me

ln -s ~/Library/Application\ Support/Google/AndroidStudio4.1/plugins ~/Library/Application\ Support/AndroidStudio4.1

Change the version of the Android studio depending on what you have, I had 4.2 so used.

ln -s ~/Library/Application\ Support/Google/AndroidStudio4.2/plugins ~/Library/Application\ Support/AndroidStudio4.2

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
t: flutter doctor Problem related to the "flutter doctor" tool tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

No branches or pull requests