7

The following steps were attempted:

  • Delete the folder ./build with the command: flutter clean
  • Delete duplicate .dart processes but it does not work
  • Delete the .lockfile file, but when I delete it, it generates it again

My operating system is: Windows 10 Professional 64 bits
I am using: Android Studios

Here is the link to the publication that I read before asking this question: Url: Waiting for another flutter command to release the startup lock

enter image description here

In the list of processes I see 2 or 3 .dart read that closing the .dart process made the construction of the project work. But it is not working.

enter image description here

I would appreciate any help, thanks.

Boken
  • 4,825
  • 10
  • 32
  • 42
DomingoMG
  • 1,827
  • 2
  • 23
  • 44
  • tried to run `flutter` command from the terminal window? does it print out anything? – pskink Feb 19 '19 at 11:55
  • Do you mean to build the application from the windows terminal? – DomingoMG Feb 19 '19 at 12:23
  • Yes, I do that all the time – pskink Feb 19 '19 at 12:26
  • I closed all .dart processes and also Android Studios. Then I opened the Windows terminal, I accessed the project and wrote the Flutter build apk but it keeps saying the same thing. "Waiting for another flutter commando to release the startup lock". https://i.gyazo.com/aff301164787df834e715fdb7ebce294.png – DomingoMG Feb 19 '19 at 12:32
  • does it happen if you delete that lock file too? – pskink Feb 19 '19 at 12:44
  • Yes, when you delete and run the command: Flutter build apk rebuilds it again. – DomingoMG Feb 19 '19 at 12:47
  • Let us [continue this discussion in chat](https://chat.stackoverflow.com/rooms/188679/discussion-between-domingomg-and-pskink). – DomingoMG Feb 19 '19 at 12:49

6 Answers6

7

if your OS is Windows, try this:

taskkill /F /IM dart.exe

if your OS is OSX, try this:

killall -9 dart
Imran
  • 5,542
  • 3
  • 23
  • 46
Wellen zhong
  • 96
  • 1
  • 5
4

Try using the following command in terminal window:

killall -9 dart
Boken
  • 4,825
  • 10
  • 32
  • 42
Laxman Kumar
  • 134
  • 6
3

killall -9 dart did no luck for me.

I had to delete flutter/bin/cache/lockfile but after deleting a restart was mandatory for solving my problem

How to delete the lock file

cd flutter/bin/cache
rm -rf lockfile
Ankur Lahiry
  • 2,253
  • 1
  • 15
  • 25
0

You can solve this problem by deleting flutter/bin/cache/lockfile it worked for me in a similar case .You can find full explanation of this issue is in this closed github issue .

Mazin Ibrahim
  • 7,433
  • 2
  • 33
  • 40
  • I deleted it from the folder that you indicated but it generates it again. https://i.gyazo.com/2f3edb3032ce6383aa3b7eeba2cbe2df.gif?_ga=2.14777397.2089147605.1550578772-1008970440.1550578772 – DomingoMG Feb 19 '19 at 12:22
0

I edited my all griddle files and run my app and it worked for me. Here edit means just delete a character and write it again. I don't know why it worked but it actually worked for me.

Nazmul81
  • 150
  • 1
  • 3
  • 13
-1
flutter packages pub build_runner watch

macos terminal

which fluter
rm -rf  /usr/local/bin/flutter/bin/cache/lockfile  
Boken
  • 4,825
  • 10
  • 32
  • 42