Waiting for another flutter command to release the startup lock

瘦欲@ 提交于 2019-12-03 03:01:44

问题


When I run my flutter application it show

Waiting for another flutter command to release the startup lock

this messages and not proceed further.


回答1:


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



回答2:


Remove this file:

<YOUR FLUTTER FOLDER>/bin/cache/lockfile

This releases the occupied lock and makes you able to run other commands.




回答3:


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



回答4:


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:

  1. Delete lockfile;
  2. Run killall -9 dart;
  3. Restart my PC.

But they all didn't work.




回答5:


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




回答6:


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




回答7:


This also happens when you have opened the flutter project in the Editor. Close the Editor and re-run the command




回答8:


For Ubuntu Linux

killall -9 dart

This worked for me even when IDE was on




回答9:


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.



来源:https://stackoverflow.com/questions/51679269/waiting-for-another-flutter-command-to-release-the-startup-lock

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!