6

I'm starting with flutter. after installing flutter and dart plugins in android studio and downloading flutter SDK flutter doctor couldn't recognize android studio. I used flutter config --android-studio-dir="C:\Program Files\Android\Android Studio" in cmd. now flutter doctor recognize android but error is this

[!] Android Studio
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
大陸北方網友
  • 3,696
  • 3
  • 12
  • 37
Zahra Rabbani
  • 83
  • 1
  • 6

6 Answers6

6

I once tried with flutter config --android-studio-dir C:\Program Files\Android\Android Studio but unfortunately it does not work because of empty space which breaks the tree structure. Later I used the quotes like this: flutter config --android-studio-dir "C:\Program Files\Android\Android Studio". I hope it works!

Hammad Ali Shah
  • 363
  • 4
  • 12
2

Flutter can recognize Android Studio. But you have to restart Android Studio after installation. You can follow these instructions:

To install these:

Start Android Studio.
Open plugin preferences (Configure > Plugins as of v3.6.3.0 or later).
Select the Flutter plugin and click Install.
Click Yes when prompted to install the Dart plugin.
Click Restart when prompted.
Akif
  • 7,098
  • 7
  • 27
  • 53
2

To avoid breaking the path structure, change the command to flutter config --android-studio-dir="C:\Program Files\Android\Android Studio" include "=" between ..."dir=C:\

2

flutter config --android-studio-dir "C:\Program Files\Android\Android Studio".

this answer works for me

ganjar
  • 21
  • 1
1

My advice for you is to uninstall this android studio version you have completely, then downgrade the version and then try again, I had this issue and I did that. I am using Android Studios 4.0.2 now.

Luthermilla Ecole
  • 666
  • 1
  • 6
  • 14
1

@Hammad Ali Shah was almost there.

Just use flutter config --android-studio-dir "C:\\Program Files\\Android\\Android Studio".

TheFabbius
  • 337
  • 4
  • 12