Skip to content

Invalid Platform selected by default in project #8255

Open
@strangedreamsNY

Description

@strangedreamsNY

It might be a problem with Android Studio specifically and I'll report it over there too, but I fully expect that team to try and point back to here...so...

When working on Flutter projects, the platform selection box for launching run/debug configuration should not show platforms that the project isn't configured for.

Reproduction on a Linux computer:

  • Open Android Studio
  • Create a New Flutter Project
  • de-select all platform options except Android

Expectations: I shouldn't see 'Linux' as a platform in my launcher, only running Android Devices
Actual: I see Linux. (see attached image).

This presents as a problem for the user when running devices are 'power cycled' since Linux becomes the default selection when the AVD is turned off and is not reverted back to the AVD selection when the device is turned on again. It really shouldn't show any invalid targets that the project isn't configured for.

Image

Image

Android Studio Meerkat Feature Drop | 2024.3.2 Patch 1
Build #AI-243.26053.27.2432.13536105, built on May 22, 2025
Runtime version: 21.0.6+-13368085-b895.109 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.X11.XToolkit
Linux 6.8.0-59-generic
Linux Mint 21.2; glibc: 2.35
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 4096M
Cores: 36
Registry:
ide.experimental.ui=true
Non-Bundled Plugins:
Dart (243.26753.1)
io.flutter (85.3.1)

Current Desktop: X-Cinnamon

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions