Skip to content

dotnet run fails when there are more than one AVD present #10998

@grendello

Description

@grendello

Android framework version

net11.0-android (Preview)

Affected platform version

Linux

Description

Locally, I have several AVD emulator images defined and it appears that the sole fact of their existence breaks dotnet run device selection, resulting in an error like this when dotnet run is called without specifying a device:

Unable to run this project because multiple devices are available. Please specify which device to use by passing the --device argument with one of the following values:

Available devices:

  1. emulator-5554 - Pixel 8 API 36 X64 
  2. Pixel_3_XL_API_22_arm_ - Pixel 3 XL API 22 Arm  (Not Running)
  3. Pixel_3_XL_API_22_x86 - Pixel 3 XL API 22 X86 (Not Running)
  4. Pixel_4_API_30_amd64_ - Pixel 4 API 30 Amd64  (Not Running)
  5. Pixel_5_API_24_amd64_ - Pixel 5 API 24 Amd64  (Not Running)
  6. Pixel_5_API_24_x86_ - Pixel 5 API 24 X86  (Not Running)

Steps to Reproduce

Create two or more AVD emulator configurations (using either Android Studio or the Android SDK command-line tools), start one of them then try to dotnet run --interactive=false a .NET for Android application.

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions