flutter doctor can't find android studio

Viewed 3783

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 Answers

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!

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

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

this answer works for me

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.

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.

@Hammad Ali Shah was almost there.

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

Related