android – Flutter app not running showing only "Waiting for another flutter command to release the startup lock"-ThrowExceptions

Exception or error:

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.

How to solve:

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.

###

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.

Leave a Reply

Your email address will not be published. Required fields are marked *