Android studio is not installed when using flutter doctor - TagMerge
5Android studio is not installed when using flutter doctorAndroid studio is not installed when using flutter doctor

Android studio is not installed when using flutter doctor

Asked 1 years ago
1
5 answers

Snap packages are installed under /snap/appname/ with subdirectories for each new version. Try this to reslove the issue, it worked for me.

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

The current directory will make sure that it always points to the latest version.

Source: link

0

if you have Androind Studio installed in your home directory /home/khamidjon set up PATH like this: /home/khamidjon/android-studio/bin

to append variable in Linux use command

export PATH=$PATH:/some/new/path

to check your PATH use

echo $PATH

Source: link

0

In my case snap packages can retain old versions of the program. So inside /snap/android-studio There were 2 versions of android studio inside directories /snap/android-studio/99 and /snap/android-studio/100. So I showed one of these paths: directory /snap/android-studio/100/android-studio with latest version.

So I ran:

flutter config --android-studio-dir=/snap/android-studio/100/android-studio

flutter doctor

Result:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.1, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Chrome - develop for the web
[✓] Android Studio
[✓] IntelliJ IDEA Community Edition (version 2020.3)
[✓] Connected device (2 available)

• No issues found!

Source: link

0

flutter doctor output:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel dev, 2.1.0-12.1.pre, on Microsoft Windows [Version 10.0.19042.985], locale en-IN)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
[√] Chrome - develop for the web
[√] Xcode - develop for iOS and macOS (Xcode 10.3)
[!] Android Studio (not installed)
[√] Connected device (2 available)
if your Android Studio install by default, you can use this command
flutter config --android-studio-dir="C:\Program Files\Android\Android Studio"
If you customized android studio installation folder then just use below comand.
flutter config --android-studio-dir="YOUR ANDROID STUDIO PATH"
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

Source: link

0

When I run flutter doctor, I see the following output..
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v1.1.8, on Mac OS X 10.13.6 17G4015, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[!] Android Studio (not installed)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.3.3)
[✓] Connected device (1 available)

! Doctor found issues in 1 category.
On Ubuntu, if you installed from snap, you should set these two parameters:
flutter config --android-sdk="$HOME/Android/Sdk"
flutter config --android-studio-dir="/snap/android-studio/current/android-studio/"
On Ubuntu, if you installed from snap, you should set these two parameters:
flutter config --android-sdk="$HOME/Android/Sdk"
flutter config --android-studio-dir="/snap/android-studio/current/android-studio/"
On Ubuntu, if you installed from snap, you should set these two parameters:
flutter config --android-sdk="$HOME/Android/Sdk"
flutter config --android-studio-dir="/snap/android-studio/current/android-studio/"
For those interested:
* Im on Ubuntu installing Flutter 4.1

* I was getting Android studio not found

* I Logged into android studio > File > Project Structure > Sdk  | there I manually selected the SDK

* Then I added the following in .bashrc --> flutter config --android-studio-dir="/home/bundu/Documents/dev/android-studio"
  At this point flutter doctor was now able to find Android Studio but not Flutter and Dart Plugins so I did the following:


1. Switch Channel: First `flutter channel` to see your current channel (I was on Stable channel) and then `flutter channel Dev` to switch from Stable to Dev

2. upgrade flutter

3. You might have to go to Android Studio to manually install the plugins or they might have already been installed

4. restart

5. close edit and run flutter doctor -v again

Source: link

Recent Questions on flutter

    Programming Languages