Flutter app not running showing only "Waiting for another flutter command to release the startup lock"
3,715
Solution 1
In my case, following command in Terminal or cmd helped (as suggested by Günter):
killall -9 dart
On Windows (as suggested by upupming):
taskkill /F /IM dart.exe
or remove this file
<YOUR FLUTTER FOLDER>/bin/cache/lockfile
This releases the occupied lock and makes you able to run other commands.
Solution 2
Stop any instance of flutter IDE's ([IntelliJ]/[Android Studio]/[VS Code]) and check for the existence of a file named lockfile
in location [flutter_installation_folder]/bin/cache/
. If any, delete it and restart your favorite IDE.
Author by
Code Hunter
Updated on December 06, 2022Comments
-
Code Hunter over 1 year
When I hit run button for Flutter app then IDE Intellij IDEA shows a message on console "Waiting for another flutter command to release the startup lock..."
Nothing happens after message.
-
F-1 over 5 yearsWhat version of Flutter are you using? Have you tried turning it off and on again?
-
ibhavikmakwana over 5 yearswhich IDE you are using
-
ibhavikmakwana over 5 yearsTry killing terminal
-
ibhavikmakwana over 5 yearsif it not solves try Kill all dart processes and try again or restart the computer.
-
Code Hunter over 5 years@F-1 I am using Flutter 0.7.3
-
lena over 5 yearsDo you have
flutter packages pub build_runner watch
running? Can be github.com/flutter/flutter/issues/14703
-