Question

[Solved] [tag][!] 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)

Solution #1:

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

Respondent: Alrazi Bashir

Solution #2:

In Windows


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

flutter config --android-studio-dir="C:Program FilesAndroidAndroid 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.

Respondent: powersee

Solution #3:

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"
Respondent: ENDEESA

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:

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

$> flutter config --android-studio-dir= "C:Program FilesAndroidAndroid Studio"

notice that is an space between the equal mark and the double cotes, this solve as you can see in this print show solved right now!
this is the fail attempt without the exactly formatting

hope this help new flutter developers! pls vote!

Respondent: Joao Victor

Solution #6:

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=

Respondent: Ikeban

Solution #7:

For ubuntu; in the unzip directory;

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

command work for me.

Respondent: leylekseven

Solution #8:

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.

Respondent: Tomasz Szulc

Solution #9:

You can use below command in command prompt

flutter config –android-studio-dir=””

Respondent: codenamebazinga

Solution #10:

Run

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

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

Respondent: Syed Asad

Solution #11:

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

Respondent: Randy Kwalar

Solution #12:

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 FilesAndroidAndroid Studio

enter image description here

Respondent: Mohammed A. Fadil

Solution #13:

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

Respondent: michellhornung

The answers/resolutions are collected from stackoverflow, are licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0 .

Most Popular

To Top
India and Pakistan’s steroid-soaked rhetoric over Kashmir will come back to haunt them both clenbuterol australia bossier man pleads guilty for leadership role in anabolic steriod distribution conspiracy