Waiting for another flutter command to release the startup lock

后端 未结 30 3160
暗喜
暗喜 2020-12-12 09:20

When I run my flutter application it show

Waiting for another flutter command to release the startup lock

this messages and not

相关标签:
30条回答
  • 2020-12-12 10:10

    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.

    0 讨论(0)
  • 2020-12-12 10:10

    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.

    0 讨论(0)
  • 2020-12-12 10:12

    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.

    0 讨论(0)
  • 2020-12-12 10:13

    For Newbies

    The simplest solution, although a little time consuming would be to restart your computer or simple logout from the current user and login again.

    0 讨论(0)
  • 2020-12-12 10:15

    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
    
    0 讨论(0)
  • 2020-12-12 10:16

    Most are saying killall -9 dart but nobody mentioned pkill -f dart which worked for me.

    The difference between the 2 is explained here.

    0 讨论(0)
提交回复
热议问题