When I run my flutter application it show
Waiting for another flutter command to release the startup lock
this messages and not proceed further.
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
Remove this file:
<YOUR FLUTTER FOLDER>/bin/cache/lockfile
This releases the occupied lock and makes you able to run other commands.
In Windows :
Press: Ctrl + Alt + Delete
- In task manager find out your editor such as VS Studio or Android Studio
- In that Find "dart" and End that Task
- Then close your editor
- Open editor again
- let editor to complete all things, after that run your query that will work
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:
- Delete lockfile;
- Run
killall -9 dart
; - Restart my PC.
But they all didn't work.
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
I tried all previous suggestions but without benefit. Finally when I connect my pc to internet and wait flutter to release then 5 minutes solved
This also happens when you have opened the flutter project in the Editor. Close the Editor and re-run the command
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.
For Ubuntu Linux
killall -9 dart
This worked for me even when IDE was on
来源:https://stackoverflow.com/questions/51679269/waiting-for-another-flutter-command-to-release-the-startup-lock