Skip to content

Flutter can't find android studio #139000

@ArthurRbn

Description

@ArthurRbn

Is there an existing issue for this?

Steps to reproduce

My configuration:

  • Ubuntu 22.04.3 LTS
  • Flutter installed via snap (Flutter (Channel stable, 3.16.0, on Ubuntu 22.04.3 LTS 6.2.0-37-generic, locale en_US.UTF-8))
  • Android studio installed from jetbrains toolbox (Android Studio Giraffe 2022.3.1 Patch 4)
  • SDK: Android 14.0 "UpsideDownCake" API Level 34 Revision 2
  • AvdId Pixel_3a_API_34_extension_level_7_x86_64

I want to be able to run flutter run -d {android device} with my simulated phone as the target.

I have also configured flutter like so:
flutter config --android-sdk="$HOME/Android/Sdk"
flutter config --android-studio-dir="/home/arthur/.local/share/JetBrains/Toolbox/apps/android-studio"

The command flutter devices returns this:
Found 2 connected devices:
Linux (desktop) • linux • linux-x64 • Ubuntu 22.04.3 LTS 6.2.0-37-generic
Chrome (web) • chrome • web-javascript • Google Chrome 119.0.6045.159

The commands flutter emulators and flutter emulators --create return this:
Unable to find any emulator sources. Please ensure you have some
Android AVD images available.

Actual results

Currently flutter doctor doesn't detect android on my desktop as the android toolchain isn't displayed in flutter doctor.
I am unable to run my flutter app with my android simulated phone as the target and I don't find any other solution on internet to fix this configuration problem.

Logs

Logs
<!-- Paste your logs here -->

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.16.0, on Ubuntu 22.04.3 LTS 6.2.0-37-generic, locale en_US.UTF-8)
    • Flutter version 3.16.0 on channel stable at /home/arthur/snap/flutter/common/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision db7ef5bf9f (10 days ago), 2023-11-15 11:25:44 -0800
    • Engine revision 74d16627b9
    • Dart version 3.2.0
    • DevTools version 2.28.2

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • clang version 10.0.0-4ubuntu1
    • cmake version 3.16.3
    • ninja version 1.10.0
    • pkg-config version 0.29.1

[✓] IntelliJ IDEA Ultimate Edition (version 2023.2)
    • IntelliJ at /snap/intellij-idea-ultimate/462
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version unknown)
    • VS Code at /snap/code/current
    • Flutter extension version 3.76.0
    ✗ Unable to determine VS Code version.

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • Ubuntu 22.04.3 LTS 6.2.0-37-generic
    • Chrome (web)    • chrome • web-javascript • Google Chrome 119.0.6045.159

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: solvedIssue is closed as solved

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions