Waiting for another flutter command to release the startup lock

后端 未结 30 3128
暗喜
暗喜 2020-12-12 09:20

When I run my flutter application it show

Waiting for another flutter command to release the startup lock

this messages and not

相关标签:
30条回答
  • 2020-12-12 09:55

    try this instead For Window

    TASKKILL //F //IM dart.exe

    This worked!

    0 讨论(0)
  • 2020-12-12 09:56

    thanks, Dear all for the right answer, I am using Flutter on Ubuntu

    killall -9 dart
    

    this command helps resolve this issue for me as well

    0 讨论(0)
  • 2020-12-12 09:59

    I tried all previous suggestions but without benefit. Finally when I connect my pc to internet and wait flutter to release then 5 minutes solved

    0 讨论(0)
  • 2020-12-12 09:59
    1. Delete pubspec.lock file
    2. Run "flutter pub get" from terminal or editor shortcut ("get packages" AndroidStudio or this logo Visual Studio) in pubspec.yaml file.
    3. Wait for download.
    4. If it doesn't work relaunch your editor then repeat step 2..
    0 讨论(0)
  • 2020-12-12 10:00

    This also happens when you have opened the flutter project in the Editor. Close the Editor and re-run the command

    0 讨论(0)
  • 2020-12-12 10:00

    You can remove flutter and "install again", so fastest way is to:

    1) Check where you have flutter (as executable)

    To check it, you can run:

    which flutter
    

    And you can expect such output:

    /your_user/your_path/flutter/bin/flutter
    

    2) Go to this directory

    Above path is directly to flutter, but we would like to go to directory so "one earlier" in path:

    cd /your_user/your_path/flutter/bin
    

    3) Check is it git repository

    It should be, but it's worth to check.

    Run one of the git command e.g.

    git status
    

    or

    git branch
    

    When it's git repository you will receive some info about it or correct list of branches.

    4) Remove all of the files

    rm -R *
    

    5) "revert" removal to have only necessary files:

    git co -- .
    

    6) Voila!

    You can run just flutter version and commands should work (and Flutter will fetch some necessary data).

    0 讨论(0)
提交回复
热议问题