When I run my flutter application it show
Waiting for another flutter command to release the startup lock
this messages and not proceed further.
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
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 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:
killall -9 dart
;But they all didn't work.
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
For Ubuntu Linux
killall -9 dart
This worked for me even when IDE was on
try this instead For Window
TASKKILL //F //IM dart.exe
This worked!
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.
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.
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.
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.
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.
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
Just type this on android studio terminal and will work again!
flutter run
:)