Zahra Rabbani
Zahra Rabbani

Reputation: 103

flutter doctor can't find android studio

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.

Upvotes: 7

Views: 9884

Answers (7)

Amir Peivandi
Amir Peivandi

Reputation: 369

No sure if this helps anyone else. For me the issue was that I has installed Android Studio P (preview) as well as Android Studio and even though I point flutter to use Android Studio it was somehow using Android Studio P!

What I did is simply removed Android Studio P and then all was fine!. Hopefully this helps someone out there.

Upvotes: 2

ganjar
ganjar

Reputation: 21

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

this answer works for me

Upvotes: 2

ChuckatWork
ChuckatWork

Reputation: 21

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

Upvotes: 2

TheFabbius
TheFabbius

Reputation: 447

@Hammad Ali Shah was almost there.

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

Upvotes: 1

Hammad Ali Shah
Hammad Ali Shah

Reputation: 373

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!

Upvotes: 6

Luthermilla Ecole
Luthermilla Ecole

Reputation: 786

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.

Upvotes: 1

Akif
Akif

Reputation: 7660

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.

Upvotes: 2

Related Questions