Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter device selection not showing up (target selector)

in one of my Flutter project I cannot any longer see a target selector to select the device picture with selector NOT showing up It is interesting because if I open another project the selector is there picture with selector showing up so there must be an issue with my first project or a setting I need to adjust...

Any help? How can I have my device selector back???

like image 588
M4trix Dev Avatar asked Sep 13 '25 11:09

M4trix Dev


2 Answers

I had one Flutter project that always opened without the "Flutter Device Selection" drop-down and the "Run 'main.dart'" menu item was always greyed out. Other projects worked fine. After following the steps below, the problematic project could build and run in the emulator properly.

  • close the project in Android Studio
  • rename or delete the .idea folder in the root of your project
  • open the project again
like image 195
bitinerant Avatar answered Sep 16 '25 08:09

bitinerant


What solved it for me was just to check the "Enable Dart support for the project [project name]" checkmark, at Android Studio > Preferences > languages & Frameworks > Dart, originally got the solution from here

like image 34
Md Rashed Nizam Avatar answered Sep 16 '25 08:09

Md Rashed Nizam



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!