Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.
like image 933
Zahra Rabbani Avatar asked Oct 14 '20 06:10

Zahra Rabbani


People also ask

Why is flutter doctor says Android Studio not installed?

To solve Android Studio (not installed) issue You just need to flutter the config to set the android studio path.

Why is Android Studio not installing?

2. Select SDKs. If you don't have an Android SDK in that list then click the + icon and select Android SDK, now point to the SDK path. While trying to create a new project Android studio checks Gradle installation online, now if you are on a proxy network then you will encounter an installation problem.


2 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!

like image 94
Hammad Ali Shah Avatar answered Sep 18 '22 17:09

Hammad Ali Shah


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

like image 43
ChuckatWork Avatar answered Sep 20 '22 17:09

ChuckatWork