-->

Waiting for another flutter command to release the

2020-02-16 06:33发布

问题:

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:

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



回答5:

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.



回答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:

try this instead For Window

TASKKILL //F //IM dart.exe

This worked!



回答10:

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.



回答11:

I also faced same issue i followed the best and the easiest way

Environment : Windows

IDE : Android Studio

Tools>flutter(last option)> select flutter clean

after flutter clean finished you all set and good to go.



回答12:

In Android Studio, It's Work for me

Stop your app if it still runs on the phone or disconnect the your testing device.

Then try to install the package again.



回答13:

There are some action to do:

1- in pubspec.yaml press "packages get" or in terminal type " flutter packages get" and wait seconds.

if this doesn't work :

2-type flutter clean then do step(1)

if this doesn't work too :

3-type killtask /f /im dart.exe

if this doesn't work too :

4- close android studio and then restart your pc.



回答14:

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.



回答15:

maybe the flutter is updating its SDK. be patient and wait. check it in the message option in below dock near terminal and version control



回答16:

Just type this on android studio terminal and will work again!

flutter run

:)