Waiting for another flutter command to release the startup lock

大憨熊 提交于 2019-12-02 16:33:36
Sukhi

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.

deep soft

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:

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

But they all didn't work.

Md.Abdul Halim Rafi

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

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