Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android-studio android-studio-dir location

I am trying to get flutter/android studios to work on linux and i am having an issue getting flutter to recognize my android-studio location.

I am able to run android-stuio, but when i try to tell flutter my install location via the android-studio-dir param i get something that doesn't work.

$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 1.27.0-2.0.pre.78, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[!] Android Studio
    ✗ android-studio-dir = ~/Downloads/android-studio/bin/
    ✗ Android Studio not found at ~/Downloads/android-studio/bin/
[✓] VS Code (version 1.53.1)
[!] Connected device
    ! No devices available

At location ~/Downloads/android-studio/bin/ i have the bin directory of my android studio install. This obviously doesn't work.

I have tried to look up what directory android-studio-dir needs to point at and it seems that i wants to point at a directory like /path/to/android/studio.

but in my install directory i dont have a studio directory to point at?

So my question is what should android-studio-dir point at?

I am able to run android studio by ./~/Downloads/android-studio/bin/studio.sh

So i am fairly confident i have android studio "installed" correctly.

like image 669
user254340 Avatar asked Jun 04 '26 02:06

user254340


1 Answers

For windows the commands are same like those from @Doc, the slashes should be backslash though, here they are fixed:

flutter config --android-sdk="C:\TestFolder\AndroidSDK"
flutter config --android-studio-dir="C:\Program Files\Android\Android Studio"
like image 161
novas1r1 Avatar answered Jun 06 '26 16:06

novas1r1



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!