Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Cannot launch without an active device" although I set up an Android emulator?

I'm trying to learn flutter and want to run a test app I'm writing with Visual Studio Code. Although I set up an Android emulator it doesn't seem to recognise it. What am I missing?

Thanks for your help!

like image 995
DanJayLee79 Avatar asked Mar 24 '26 15:03

DanJayLee79


1 Answers

Run flutter doctor and flutter devices, if no devices appear to be connected (in this case, emulated) you need to kill theadb server, open the emulator and then start the adb-server.

kill server using --> adb kill-server command Start server--> adb start-server

If the issue still persists after this, try flutter doctor --android licenses

And if it still continues, please post your flutter doctor & flutter devices output. If above not works, try those:

  • Disabled and Enabled Flutter plugin
  • Disabled and Enabled Dart plugin
  • Restarted Vscode
  • Restarted PC
like image 84
Thusitha Deepal Avatar answered Mar 26 '26 08:03

Thusitha Deepal



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!