When I run my flutter application it show
Waiting for another flutter command to release the startup lock
this messages and not
For me, the issue's root cause on my Mac device was a version of the flock binary it was not expecting. Removing it from the path did the trick; probably a BSD vs GNU syntax issue.
Restart your IDE first and then run the following command in project folder from terminal
killall -9 dart
It worked for me. Hope it will help some of the guys facing the same problem.
I use a Mac with Visual Studio Code and this is what worked:
Shutdown your PC and switch it on again. Don't use the restart function. I restarted 2 times and it didn't work. Only shutdown worked.
PS: I tried out the following:
killall -9 dart
;But they all didn't work.
The simplest solution, although a little time consuming would be to restart your computer or simple logout from the current user and login again.
In my case, following command in Terminal helped (as suggested by Günter):
killall -9 dart
On Windows (as suggested by upupming):
taskkill /F /IM dart.exe
Most are saying killall -9 dart
but nobody mentioned pkill -f dart
which worked for me.
The difference between the 2 is explained here.