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
ID : 10087
viewed : 45
90
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
89
Remove this file:
<YOUR FLUTTER FOLDER>/bin/cache/lockfile
This releases the occupied lock and makes you able to run other commands.
71
If you're using Android Studio save your work and close it. And open your terminal to kill running dart instances.
Those commands will kill all dart instances including the ones created by editors for code analysis and debug instances. So be careful before executing
Linux:
killall -9 dart
Windows:
taskkill /F /IM dart.exe
lockfile
You can find lockfile
inside flutter installation directory.
<flutter folder>/bin/cache/lockfile
63
In Windows :
Press: Ctrl + Alt + Delete
53
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.