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

Android Studio flutter and dart plugins not recognized by flutter doctor , but plugins are installed #21881

Closed
ZayniddinMamarasulov opened this issue Sep 14, 2018 · 39 comments
Labels
t: flutter doctor Problem related to the "flutter doctor" tool tool Affects the "flutter" command-line tool. See also t: labels.

Comments

@ZayniddinMamarasulov
Copy link

Hello everybody , I am trying to install flutter on ubuntu , android studio flutter and dart plugins have been installed , but flutter doctor said that they are not installed. At the beginning flutter doctor didn't find my android studio and sdk even if they are installed, then fixed this problems by configuring custom directories for android studio and sdk with this commands :

flutter config --android-studio-dir=/my/local/path/for/android/studio
flutter config --android-sdk=/my/local/path/for/sdk

but couldn't find any solution how to show android studio installed plugins directory for flutter doctor

[✓] Flutter (Channel beta, v0.7.3, on Linux, locale en_US.UTF-8)
    • Flutter version 0.7.3 at /home/zayniddin/flutter
    • Framework revision 3b309bda07 (2 weeks ago), 2018-08-28 12:39:24 -0700
    • Engine revision af42b6dc95
    • Dart version 2.1.0-dev.1.0.flutter-ccb16f7282

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.2)
    • Android SDK at /home/zayniddin/Documents/Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.2
    • Java binary at: /home/zayniddin/Documents/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
    • All Android licenses accepted.

[✓] Android Studio
    • Android Studio at /home/zayniddin/Documents/android-studio
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • android-studio-dir = /home/zayniddin/Documents/android-studio
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] IntelliJ IDEA Community Edition (version 2018.2)
    • IntelliJ at /snap/intellij-idea-community/77
    • Flutter plugin version 28.0.4
    • Dart plugin version 182.4323.44

[✓] VS Code (version 1.27.1)
    • VS Code at /usr/share/code
    • Flutter extension version 2.18.0

[!] Connected devices
    ! No devices available

! Doctor found issues in 1 category.

any solutions ?, please help me

@evelyne24
Copy link

evelyne24 commented Sep 14, 2018

Hey, I'm on Mac but I had to install the Flutter and Dart plugin in Android Studio, by going to Preferences > Plugins > Browse Repositories > find the plugins, install and restart. Have you tried that?

screen shot 2018-09-14 at 23 54 02

@ZayniddinMamarasulov
Copy link
Author

Hey, I'm on Mac but I had to install the Flutter and Dart plugin in Android Studio, by going to Preferences > Plugins > Browse Repositories > find the plugins, install and restart. Have you tried that?

screen shot 2018-09-14 at 23 54 02

yes I installed plugins , but flutter doctor didn't recognize

@zoechi
Copy link
Contributor

zoechi commented Sep 15, 2018

flutter doctor -v also doesn't show your Android Studio version

[✓] Android Studio (version 3.1)

What Android Studio version do you have installed?

@zoechi zoechi added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Sep 15, 2018
@febs
Copy link

febs commented Sep 18, 2018

I got that very same behavior on Android Studio 3.2 RC3:

[✓] Android Studio (version 3.2)
• Android Studio at /home/fabio/DevTools/beta/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-b06)

@zoechi
Copy link
Contributor

zoechi commented Sep 19, 2018

Try with Flutter from master channel. I think to remember there was a fix recently to make the plugins compatible with Android Studio 3.2.

@febs
Copy link

febs commented Sep 20, 2018

That partially solved the issue. Now both my copies of Android Studio (3.1 and 3.2beta) are recognized and they plug-ins also are.
But :-D the flutter doctor now also identifies a non-existent third Android Studio installation (with no version attached according to it) and the missing plugins.

Here's the output:

 [✓] Android Studio (version 3.1)
    • Android Studio at /home/fabio/android-studio
    • Flutter plugin version 28.0.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] Android Studio (version 3.2)
    • Android Studio at /home/fabio/DevTools/beta/android-studio
    • Flutter plugin version 28.0.2
    • Dart plugin version 181.5616
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[✓] Android Studio
    • Android Studio at /home/fabio/DevTools/beta/android-studio/
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • android-studio-dir = /home/fabio/DevTools/beta/android-studio/
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

@zoechi
Copy link
Contributor

zoechi commented Sep 20, 2018

Issue moved to flutter/flutter-intellij #2620 via ZenHub

@zoechi
Copy link
Contributor

zoechi commented Sep 22, 2018

reopening according to the comment to flutter/flutter-intellij#2620

@SPSpisoft
Copy link

This is also the problem for me :(
In addition, when the new project is launched in Android Studio, it will not work after the final stage (Finish) And to get out of this situation is forced to end task..
Look at the picture ..

flutter_issue

I look forward to fixing this problem impatiently
Thanks

@zoechi zoechi added tool Affects the "flutter" command-line tool. See also t: labels. and removed waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds labels Sep 23, 2018
@zoechi zoechi added this to the Goals milestone Sep 23, 2018
@SPSpisoft
Copy link

SPSpisoft commented Sep 24, 2018

Hi everybody
This problem has been solved fortunately for me. But unfortunately I can not exactly say how it was solved!
Because I did some things at once. Anyway I write what I did, I hope your problem will be solved.

1- updated android SDK
... and set ANDROID_HOME in Environment Variable

2 - updated JDK
... and set JAVA_HOME in Environment Variable

3 - in Flutter console run: flutter doctor --android-licenses
... and in answer to the questions: y <Enter>

4 - in Flutter console run: flutter create test_app

Now, After running flutter doctor -v the problem is solved !

The only remaining problem is that it's not possible to build a new project through Android Studio
But the project that was made through the Flutter console can be opened and edit in Android Studio

Good luck to all friends and Flutter team 👍

@vinceyoumans
Copy link

I got that very same behavior on Android Studio 3.2 RC3:

[✓] Android Studio (version 3.2)
• Android Studio at /home/fabio/DevTools/beta/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-b06)

I have the same problem... have always had it. did you ever resolve this?

@zoechi zoechi added the t: flutter doctor Problem related to the "flutter doctor" tool label Dec 20, 2018
@GhostLee
Copy link

That partially solved the issue. Now both my copies of Android Studio (3.1 and 3.2beta) are recognized and they plug-ins also are.
But :-D the flutter doctor now also identifies a non-existent third Android Studio installation (with no version attached according to it) and the missing plugins.

Here's the output:

 [✓] Android Studio (version 3.1)
    • Android Studio at /home/fabio/android-studio
    • Flutter plugin version 28.0.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] Android Studio (version 3.2)
    • Android Studio at /home/fabio/DevTools/beta/android-studio
    • Flutter plugin version 28.0.2
    • Dart plugin version 181.5616
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[✓] Android Studio
    • Android Studio at /home/fabio/DevTools/beta/android-studio/
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • android-studio-dir = /home/fabio/DevTools/beta/android-studio/
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

So have u ever tried to move the configuration files of Android Studio?I just move these files and my flutter cannot recognized those plugins.

@zoechi
Copy link
Contributor

zoechi commented Jan 25, 2019

Are you using Android Studio Canary 3.4?
This is not yet supported.

@VEWapps
Copy link

VEWapps commented Jan 27, 2019

I was having the exact same issue, using IntelliJ IDEA Community version on Linux Mint.
I opened Android Studio to make sure that I had installed the dart and flutter plug-ins (which I had already done), I changed nothing, and closed Android Studio.
Then, when I ran flutter doctor again, the problem was solved. Additionally, the version of Android Studio appeared (before it had just said "Android Studio").
So, problem solved, I guess? But I have no idea how or why.

@kangwang1988
Copy link
Contributor

Look like: #26928
And can check if PR: #26964 works.

@zoechi
Copy link
Contributor

zoechi commented Feb 8, 2019

Please check if you can still reproduce in latest master.
Tentatively closing as duplicate of #26928.
Please add a comment to have it reopened in case you can still reproduce.

@zoechi zoechi closed this as completed Feb 8, 2019
@nvintz22
Copy link

What I did is I checkout to master branch after installing the Flutter and Dart plugins. Then run flutter doctor.
Then it works.

@ZackPashkin
Copy link

Solved by settings --> plugins--> search in repositories --> flutter
then restart android studio

@iverc
Copy link

iverc commented Mar 21, 2019

Happened to me on Android Studio 3.3. To solve the issue:

  • Run flutter doctor --android-licenses and accept all licenses.
  • Run flutter doctor again, it should be able to recognize plugins at this point.

@poos
Copy link

poos commented Mar 22, 2019

When you install plugins finished, android studio remind you restart it. Maybe you should Manually restart. Then, run flutter doctor again. It will be ok.

@giobio941
Copy link

for MY issue for it to be solved. I have intelliJ AND Android Studio. I had to install Flutter and Dart on the IntelliJ Application. Once installed, I ran flutter doctor in Android Studio and all issues were resolved.

@xurshidt90
Copy link

У меня тоже была такая проблема. Я удалил IntelliJ и занова запустил комманда (flutter doctor) и все работал

@affluak
Copy link

affluak commented Sep 12, 2019

Happened to me on Android Studio 3.3. To solve the issue:

  • Run flutter doctor --android-licenses and accept all licenses.
  • Run flutter doctor again, it should be able to recognize plugins at this point.

I accepted all licenses and then installed the plugins in the android studio. After restart close android studio and run flutter doctor -v

**Accept? (y/N): y
All SDK package licenses accepted

Obeds-MacBook-Pro:~ obedk.asamoahafflu$ flutter doctor -v
[✓] Flutter (Channel beta, v1.9.1+hotfix.2, on Mac OS X 10.14.6 18G95, locale
en-AE)
• Flutter version 1.9.1+hotfix.2 at /Users/obedk.asamoahafflu/flutter
• Framework revision 2d2a1ff (6 days ago), 2019-09-06 18:39:49 -0700
• Engine revision b863200
• Dart version 2.5.0

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/obedk.asamoahafflu/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling
support)
• Platform android-29, build-tools 29.0.2
• Java binary at: /Applications/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.3, Build version 10G8
• CocoaPods version 1.7.5

[!] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
✗ 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_202-release-1483-b49-5587405)

[!] Connected device
! No devices available

! Doctor found issues in 2 categories.
Obeds-MacBook-Pro:~ obedk.asamoahafflu$ flutter doctor -v
[✓] Flutter (Channel beta, v1.9.1+hotfix.2, on Mac OS X 10.14.6 18G95, locale
en-AE)
• Flutter version 1.9.1+hotfix.2 at /Users/obedk.asamoahafflu/flutter
• Framework revision 2d2a1ff (6 days ago), 2019-09-06 18:39:49 -0700
• Engine revision b863200
• Dart version 2.5.0

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/obedk.asamoahafflu/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling
support)
• Platform android-29, build-tools 29.0.2
• Java binary at: /Applications/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.3, Build version 10G8
• CocoaPods version 1.7.5

[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 39.0.3
• Dart plugin version 191.8423
• Java version OpenJDK Runtime Environment (build
1.8.0_202-release-1483-b49-5587405)

[!] Connected device
! No devices available**

@TheArslan
Copy link

That partially solved the issue. Now both my copies of Android Studio (3.1 and 3.2beta) are recognized and they plug-ins also are.
But :-D the flutter doctor now also identifies a non-existent third Android Studio installation (with no version attached according to it) and the missing plugins.

Here's the output:

 [✓] Android Studio (version 3.1)
    • Android Studio at /home/fabio/android-studio
    • Flutter plugin version 28.0.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] Android Studio (version 3.2)
    • Android Studio at /home/fabio/DevTools/beta/android-studio
    • Flutter plugin version 28.0.2
    • Dart plugin version 181.5616
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[✓] Android Studio
    • Android Studio at /home/fabio/DevTools/beta/android-studio/
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • android-studio-dir = /home/fabio/DevTools/beta/android-studio/
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

Did you find the solution of this? Can you please explain me

@hiep294
Copy link

hiep294 commented Jan 1, 2020

Here is my found solution in my linux laptop, first is to set permission for flutter
chown -R YOUR_USERNAME YOUR_FLUTTER_DIRECTORY
for instanse:
chown -R hiep294 /opt/flutter
luckily, everything worked!

@mkbond777
Copy link

Hey, I'm on Mac but I had to install the Flutter and Dart plugin in Android Studio, by going to Preferences > Plugins > Browse Repositories > find the plugins, install and restart. Have you tried that?

screen shot 2018-09-14 at 23 54 02

In my case I updated my plugin and it worked. Thanks anyways.

@bryanpei
Copy link

Here is my found solution in my linux laptop, first is to set permission for flutter
chown -R YOUR_USERNAME YOUR_FLUTTER_DIRECTORY
for instanse:
chown -R hiep294 /opt/flutter
luckily, everything worked!

Thanks! This fixed my issue. I ran sudo chown -R YOUR_USERNAME YOUR_FLUTTER_DIRECTORY then the problem is fixed.

@srinivasugt
Copy link

I had the same issue (Flutter plugin not installed; this adds Flutter specific functionality.). So I followed this steps which got resolved:

Under Tools>SDK Manager
On the left side panel, click on Plugins & after selecting Plugins link, on right side you search for Flutter & on the search result Flutter will be displayed, just click "Install" button which automatically installs the Dart as well & post installation. It will ask to restart IDE. Click on Restart IDE. And check for flutter doctor.. your problem will be resolved...

Happy learning...

@srinivasugt
Copy link

Similarly, I fixed for Visual Studio Code:

Flutter extension not installed; install from https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

Steps followed to install flutter & dart in VS Code:

File > Preferences > Extensions
Search for Flutter & click on "install" link & same for Dart also, search for Dart & click on "install" link.. Restart VS Code.. Problem is solved..

Happy learning...

@srinivasugt
Copy link

Problem on IntelliJ IDE :
Flutter plugin not installed; this adds Flutter specific functionality. X Dart plugin not installed; this adds Dart specific functionality.

Fixed by doing:

File > Settings > Plugins (found on left side). Search for Flutter & click on Install, it will also install Dart along with Flutter... We need to click on "Accept" button during installation process..

Happy learning...

@renntbenrennt
Copy link

I know this has been closed, but I still have the exact same issue where flutter doctor
printing the plugin of my Android Studio is not installed.
Help!!! Please...

And here's my flutter doctor output:
image

And I have just upgraded my Android Studio to latest, I think.
image

@giobio941
Copy link

Try to install the same plugins on your intelliJ. Verify they have been installed and try to run flutter doctor on android studio.

@renntbenrennt
Copy link

@giobio941 Thanks for the reply, but I have the plugin installed already...

And this is the screenshot of my plugin setting of Flutter, which shows installed
image

And I have also tried uninstall it and reinstalled it, but no, nothing works...

@giobio941
Copy link

This is the issue I've had before. I had intelliJ installed first, then i downloaded android studio. For some odd reason, android studio didn't recognize the plugins. After running the flutter doctor many times, i tried to install the flutter plugins on Intellij. Once i installed it on IntelliJ, I went back to android studio and it recognized the plugins. If you've tried that, Imm sorry if it didn't help.

@renntbenrennt
Copy link

@giobio941 Thanks for your advice, and I should notice that you said intellij!

And oh my god, I do have a intellij installed!!! What a moron was I!!!

It works now!
image

So basically, the fact that I didn't realize the fluter doctor was reporting the intellij not Android Studio... my stupid eyes... sorry, again, and super thank you for your awesome help!!!!

Thanks!!! hahaha

@whyte624
Copy link

I see that issue is closed, however I tried a lot of things from this issue, and did not solve the problem.

$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.12.13+hotfix.8, on Mac OS X 10.15.4 19E266,
    locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 11.4)
[✓] Android Studio (version 3.6)
[!] IntelliJ IDEA Ultimate Edition (version 2019.3.4)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[!] Connected device
    ! No devices available

I have tried:

  • updated flutter
  • updated android SDK
  • installed plugins both for Android Studio and Intellij Idea
  • disable and enable back plugins
  • cleared flutter bin/cache
  • restarted everything multiple times 😀

Is there any permanent solution for this issue?

@renntbenrennt
Copy link

@whyte624 Hi! You need to navigate to your IntelliJ IDEA to install flutter related plugin on that IDE as well, even you won't use it to develop Flutter App.

@iribeirodev
Copy link

It worked for me after running flutter doctor --android-licenses:
$ flutter doctor --android-licenses
Warning: File /home/myuser/.android/repositories.cfg could not be loaded.
All SDK package licenses accepted.======] 100% Computing updates..

$flutter doctor
[✓] Flutter (Channel stable, v1.12.13+hotfix.9, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[!] Android Studio (not installed)
[✓] IntelliJ IDEA Community Edition (version 2019.3)
[✓] VS Code (version 1.43.2)

Then I started Android Studio and ran flutter doctor again
$flutter doctor
[✓] Flutter (Channel stable, v1.12.13+hotfix.9, on Linux, locale en_US.UTF-8)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Android Studio (version 3.6)
[✓] IntelliJ IDEA Community Edition (version 2019.3)
[✓] VS Code (version 1.43.2)
[!] Connected device
! No devices available

@lock
Copy link

lock bot commented Apr 25, 2020

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.

@lock lock bot locked and limited conversation to collaborators Apr 25, 2020
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