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.

Share:
3,715
Code Hunter
Author by

Code Hunter

Updated on December 06, 2022

Comments

  • Code Hunter
    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
      F-1 over 5 years
      What version of Flutter are you using? Have you tried turning it off and on again?
    • ibhavikmakwana
      ibhavikmakwana over 5 years
      which IDE you are using
    • ibhavikmakwana
      ibhavikmakwana over 5 years
      Try killing terminal
    • ibhavikmakwana
      ibhavikmakwana over 5 years
      if it not solves try Kill all dart processes and try again or restart the computer.
    • Code Hunter
      Code Hunter over 5 years
      @F-1 I am using Flutter 0.7.3
    • lena
      lena over 5 years
      Do you have flutter packages pub build_runner watch running? Can be github.com/flutter/flutter/issues/14703