Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

flutter daemon terminated when I try to launch my app

Tags:

flutter

Just upgraded to v1.1.8 for flutter. Restarted Android studio. Using an emulator. Drop down menu for devices has disappeared and the AVD manager has been greyed out.

like image 988
flutter Avatar asked Feb 01 '19 16:02

flutter


People also ask

How to fix flutter daemon terminated issue?

Restart VS Code (if you didn’t try already). The daemon terminating is not unusual when you upgrade (there’s an issue about improving this at Dart-Code/Dart-Code#931 ). If after restarting VS Code you’re still seeing this message, enable Flutter Daemon Logging, restart VS Code to reproduce the issue, then send me the log.

How do I fix the daemon that terminates after upgrading?

Restart VS Code (if you didn't try already). The daemon terminating is not unusual when you upgrade (there's an issue about improving this at Dart-Code/Dart-Code#931 ). Check whether flutter doctor works from the terminal (if there's something wrong with Flutter after the upgrade, it may affect launching the daemon)

Is the flutter daemon port still honored on macOS?

The port is still honored but no Flutter Daemon failure error. Using Windows 10. I had the same struggle and non of the answers above worked for me. After searching for quite a long time I noticed that some permissions are handled differently by default with the latest macOS versions.

Why can't I run flutter without Sudo?

Check if your flutter command can run without attaching sudo to it ( sudo flutter ). If it throws some error then there's a permission issue. To solve this, you will need to reinstall the flutter in the low secured directory like /usr etc.


2 Answers

What worked for me is to kill the adb.exe processes in the Task Manager. There were 20 of them and once I killed them all everything started working normally.

like image 81
TimSim Avatar answered Oct 19 '22 00:10

TimSim


I deleted the flutter folder by mistake. Re-cloning it back and restarting flutter worked for me

like image 1
Panduranga Rao Sadhu Avatar answered Oct 19 '22 00:10

Panduranga Rao Sadhu