4
votes

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.
6
Try to uninstall flutter and dart plugin and restart the android studio and reinstall flutter and dart again. Sometimes it will work. - Mohit Raval
Thank you. I have tried it before but it is the same again - Zahra Rabbani

6 Answers

6
votes

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!

1
votes

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.
1
votes

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:\

0
votes

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.

0
votes

@Hammad Ali Shah was almost there.

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

0
votes

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

this answer works for me