Android Studio (not installed) , when run flutter doctor while Android Studio installed on machine

When I run flutter doctor command on mac its showing below, while I already install Android Studio, and I can run ios build from Android Studio.

[!] Android Studio (not installed)

flutter doctor output:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.14.5 18F132, locale en-GB)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
[!] Android Studio (not installed)
[✓] Connected device (1 available)

Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

In Windows


if your Android Studio install by default, you can use this command

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

after this command, flutter can found android studio, but the plugin can’t…

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 1.20.2, on Microsoft Windows [Version 10.0.18363.1016], locale zh-CN)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[!] Android Studio
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
[√] VS Code (version 1.48.0)
[!] Connected device
    ! No devices available

! Doctor found issues in 2 categories.

In Linux (Ubuntu)


Note: for those who are facing the problem in Ubuntu and Android Studio is installed with snap:

flutter config --android-studio-dir="/snap/android-studio/current/android-studio"

Note: for those who are facing the problem in Ubuntu and Android Studio is installed with JetBrains Toolbox:

flutter config --android-studio-dir=/home/myuser/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.7042882

Where ./201.7042822 matches the current version of Android Studio installed. You’ll have to check which one you have and update it in the command above.

Solution 2

I had a similar issue which I solved by updating my flutter config as follows:

  flutter config --android-sdk="$HOME/Android/Sdk"
  flutter config --android-studio-dir="/usr/local/android-studio"

This was on Ubuntu 20.04.1

Assumptions:

  • You have extracted the downloaded android studio zip to /usr/local/android-studio

If you install Android studio using snap then

flutter config --android-studio-dir="/snap/android-studio/current/android-studio"

Solution 3

I solve this issue within windows 10 pro with this exactly line:

$> flutter config --android-studio-dir= "C:\Program Files\Android\Android Studio"

notice that is an space between the equal mark and the double cotes, this solve as you can see in this print Android Studio (not installed) , when run flutter doctor while Android Studio installed on machine
Android Studio (not installed) , when run flutter doctor while Android Studio installed on machine

hope this help new flutter developers!

Solution 4

If you have installed Android Studio via Snap, run following command

flutter config --android-studio-dir="/snap/android-studio/current/android-studio"

This will fix the issue

Solution 5

flutter config --android-studio-dir C:\Program Files\Android\Android Studio will unfortunately not work because of empty space which breaks the tree structure but to solve the issue, use quotes like this: flutter config --android-studio-dir "C:\Program Files\Android\Android Studio"

Solution 6

A solution that worked for me was (after double clicking the downloaded file IDE) move the Android Studio program into the applications folder.

I ran Flutter Doctor and followed all prompts. worked for me.

This works on MacOS only

Solution 7

I think that I had the same issue, below are steps that helped me so I would recommend to try them.
1. Android Studio is installed and you can run it, so when it boots up, select configure:
Where to find configure on Android Studio screen

  1. In dropdown list open “plugins”
  2. Search for “flutter” and install this plugin together with dart.
  3. Restart the Android Studio and open a new terminal.
  4. You should be able to create a flutter project in Android Studio and “flutter doctor” should work now.

Another possible solution:
Specify path, where android studio is installed, with the following command:
flutter config –android-studio-dir=

Solution 8

This worked for me!!

The problem is if your folder name is "Android Studio", flutter is not able to detect it later as taking only Android and skipping Studio.

Solution is :

Rename folder name from "Android Studio" To "AndroidStudio" and then run the config command :

flutter config –android-studio-dir="C:\Program Files\Android\AndroidStudio"
Android Studio (not installed) , when run flutter doctor while Android Studio installed on machine

Solution 9

Following worked for me.

Close opened Android studio application if any, and open the cmd as an admisitrator and give the below command

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

Solution 10

For ubuntu; in the unzip directory;

flutter config –android-studio-dir="pwd/android-studio"

command work for me.

Solution 11

  1. Go Android studio Home Screen
  2. Configure
  3. Install Flutter, Dart, Plugin
  4. Restart android studio and work properly

if now you are not able to solve the issue
so please run this command and check again

C:\mycomputer>flutter config --android-studio-dir="C:\ProgramFiles\Android\Android Studio"

I Have Solve this issue with this command

Android Studio (not installed) , when run flutter doctor while Android Studio installed on machine

Solution 12

This works for me in windows 8.1:

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

2021.09.01

Solution 13

You can use below command in command prompt

flutter config –android-studio-dir=""

Solution 14

The solution with :
flutter config –android-studio-dir="Your_Android_Studio_Directory"
worked for me.

After that you can get error messages with flutter doctor even if you have the pluggins already intalled:

[!] Android Studio
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.

Reinstalling flutter and dart plugins in Android Studio (version 4.1) solved the problem.

Solution 15

Even though this question is for mac, a lot of people like me will find this as top result. So in case you are on Windows and you installed Android Studio via JetBrains Toolchain and the paths in answers above don’t work for you, this worked for me

flutter config --android-studio-dir="C:\Users\YOUR_USERNAME_HERE\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\202.7351085"

Where 202.7351085 is the folder name for my current version of Android Studio so you may need to change that too.

If you can’t find Android Studio in this path, do:

  1. Search Android Studio and open file location
  2. If it’s a shortcut, open location again
  3. You should be in /bin
  4. Go up one folder and that’s your path

Solution 16

Run

flutter config --android-studio-dir=<directory-where-studio-is-installed>  

This will solve both issues of android licenses and studio not installed

Solution 17

For Linux (Ubuntu) users

  1. Run

if you installed android studio through snap (Ubuntu Software application), run

flutter config --android-studio-dir="/snap/android-studio/current/android-studio"

Otherwise, run

flutter config --android-sdk="$HOME/Android/Sdk"
flutter config --android-studio-dir="/usr/local/android-studio"
  1. Install Dart and Flutter plugins in Android Studio and then Restart
  2. Switch to Flutter Beta Channel by running these commands

flutter channel beta

flutter upgrade

Run flutter doctor

Solution 18

The solution that worked for me is that I had to re-install AndroidStudio to a new location in a way that the full path to it contains no spaces, in the image below will you notice that flutter was cropping my full path because it contained a white space when I use the command flutter config --android-studio-dir C:\Program Files\Android\Android Studio

Android Studio (not installed) , when run flutter doctor while Android Studio installed on machine

Solution 19

I had this problem because I downloaded a new AS version without uninstalling the old one first. During the download AS left the old program in place at C:\Program Files\Android\Android Studio and just created a new installation at C:\Program Files\Android\Android Studio1 (two installations next to each other??!! ).

I tried uninstalling AS (so I could do a fresh install) using the windows control panel but it said AS is already uninstalled?

So I had to run flutter config –android-studio-dir="C:\Program Files\Android\Android Studio1" to point to the new version i.e. Android Studio1. This solved the problem.

Solution 20

In my case just renamed from AndroidStudio to Android Studio.app inside app folder cuz it was searching for separated words: Android Studio. Worked like a charm

Method 21

I faced the same problem and solved by configuring android studio path manually.
For my case the path was /opt/android-studio-4.1/android-studio

flutter config --android-studio-dir=/opt/android-studio-4.1/android-studio

Method 22

on windows, just add the path C:\Program Files\Android\Android Studio, in the environment variables

Method 23

Following worked for me in Windows:

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

flutter config --android-sdk="C:\%HOMEPATH%\AppData\Local\Android\Sdk"

Method 24

I use WSL on Windows 10 and I think that I was configuring flutter from WSL’s command prompt. When I cleaned the flutter repo and tried to configure everything from PowerShell as administrator, it worked.

Method 25

flutter config –android-studio-dir="file path of android studio"

for example :
in my case, my android studio in "E Drive "

flutter config –android-studio-dir="E:\Android\Android Studio"

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply