Skip to content

Tools -> AVD Manager disappears sometimes with Flutter projects #2159

@maryx

Description

@maryx

Steps to Reproduce

(I'm doing this on Linux right now but have seen the same behavior on MacOS)

  1. With a fresh install of Android Studio 3+, with Flutter plugin and SDK configured, open an existing Flutter project.

  2. The emulator selector says <no devices>, so I select a device I had made previously. It results in this:
    screenshot from 2018-04-26 09-34-06

  3. Try to open the AVD Manager to start the emulator from there. https://flutter.io/setup-linux/ points to Tools -> AVD Manager to view my devices. However, the AVD option doesn't show up. It shows up if I create a blank Android project, which is what I was doing to overcome this issue until I found this answer https://stackoverflow.com/a/47173929/8468400 (I'm not sure if my projects are missing something but this is an example project where the AVD Manager disappears: https://github.com/flutter/udacity-course/tree/master/course/04_navigation/solution_04_navigation.)
    screenshot from 2018-04-26 09-35-46

  4. This is fine - I can do ctrl + shift + a, and type "AVD Manager" to bring up the AVD Manager. I start my device. This works successfully. I build my app successfully.

  5. Subsequent development on this emulator, including hot reloads and restarts, works without any problems.

The two issues are:

  • The emulator panic error
  • Tools -> AVD Manager option disappears

I'm not sure if this is Flutter-IntelliJ-specific, my project-specific, Android Studio-specific, or something else, so feel free to move this issue.

Version info

$ flutter doctor -v
[✓] Flutter (Channel beta, v0.3.1, on Linux, locale en_US.UTF-8)
    • Flutter version 0.3.1 at /usr/local/google/home/maryxia/github-forks/flutter
    • Framework revision 12bbaba9ae (6 days ago), 2018-04-19 23:36:15 -0700
    • Engine revision 09d05a3891
    • Dart version 2.0.0-dev.48.0.flutter-fe606f890b

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at /usr/local/google/home/maryxia/Android/Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • Java binary at: /usr/local/google/home/maryxia/Downloads/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
    • All Android licenses accepted.

[✓] Android Studio (version 3.1)
    • Android Studio at /usr/local/google/home/maryxia/Downloads/android-studio
    • Flutter plugin version 23.2.2
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] VS Code (version 1.22.2)
    • VS Code at /usr/share/code
    • Dart Code extension version 2.11.2

[✓] Connected devices (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)

• No issues found!

Other data points:

  • I am also encountering this on another unrelated Flutter project.
  • @mjohnsullivan was encountering this issue too, on a version of the unit converter project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions