When I run my flutter application it show
Waiting for another flutter command to release the startup lock
this messages and not
In Windows :
Press: Ctrl + Alt + Delete
Exit from your IDE, then from start manager stop all dart related files(if any have).
Then go to
"FLUTTER DIRECTORY"/bin/cache/lockfile
and delete this lockfile
This occurs when any other flutter command is running in background. To solve this you can run for mac
killall -9 dart
and for windows open task manager. Then in processes tab, search for dart process and kill all of them. Hope this helps you.
If you are using Windows, you can open the task manager and under the 'Processes' tab search for processes named 'dart'. End all those tasks.
In VS code run
flutter clean
in the terminal. This fixed my issue.
I just left the terminal open for a minute. then it started working fine again.