Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 366 Vote(s) - 3.46 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Flutter not detecting Android Studio

#1
I have installed flutter correctly on my Ubuntu machine. I have also installed Android Studio and its plugins Flutter and Dart.
Anyway, when I run:


flutter doctor --verbose
I get this output:

[✓] Flutter (Channel stable, 1.20.1, on Linux, locale es_ES.UTF-8)
• Flutter version 1.20.1 at /root/snap/flutter/common/flutter
• Framework revision 2ae34518b8 (hace 5 días), 2020-08-05 19:53:19 -0700
• Engine revision c8e3b94853
• Dart version 2.9.0

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
• Android SDK at /home/AAAA/Android/Sdk
• Platform android-30, build-tools 30.0.1
• Java binary at: /usr/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_265-8u265-b01-0ubuntu2~18.04-b01)
• All Android licenses accepted.

[!] Android Studio (not installed)
• Android Studio not found; download from

[To see links please register here]

(or visit

[To see links please register here]

for detailed instructions).

[!] Connected device
! No devices available

! Doctor found issues in 2 categories.

My android studio is located on /snap/android-studio/current/android-studio
I have also tried running:

flutter config --android-studio-dir=/snap/android-studio/current/android-studio
And:

flutter config --android-studio-dir=/snap/android-studio
But the result after running `flutter doctor` is always the same, nothing recognized.

Thanks!
Reply

#2
I installed both flutter and android-studio through snap. This fixed it for me:

flutter config --android-sdk="$HOME/Android/Sdk"
flutter config --android-studio-dir="/snap/android-studio/current/android-studio/"
Reply

#3
flutter wasn't detecting android studio till i did this command:
```
flutter config --android-studio-dir=/media/hacker/code/android/android-studio
```
instead of this below which did not work
```
flutter config --android-studio-dir="media/hacker/code/android/android-studio"
```
Reply

#4
when flutter doctor not detect android studio ;

then provide path manually by using following command :

> flutter config --android-studio-dir ="your-android-path"

for example:

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

it's work for all OS .

thank you...
Reply

#5
The flutter config command above also worked for me on Windows, but instead I had to use it with no spaces bewtween equal sign and "Path", like below:

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

#6
it's work for me, macos:

flutter config --android-studio-dir=/Applications/"Android Studio.app"
Reply

#7
Yeah, so find where snap has installed Android-Studio in your ubuntu:

1. Go to the root directory where you can find etc, opt, var, usr directories.
2. Search for "Android". For me it was in "/opt/android-studio-2021.2.1/android-studio"
3. Open the Terminal and enter:

<pre>flutter config --android-studio-dir ="your-android-path" </pre>

For me it was like:
<pre>flutter config --android-studio-dir ="/opt/android-studio-2021.2.1/android-studio" </pre>
4. Then again run:
<pre>flutter doctor </pre>
Reply

#8
I'm using the Jetbrains toolbox on Mac OS.

- Under "Android Studio" I chose ... Settings
- I copied the "Install Location"
- I then used the command

```
flutter config --android-studio-dir "#PATH_TO_INSTALL#/Android Studio.app"
```

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through