Waiting for another flutter command to release the startup lock

后端 未结 30 3521
暗喜
暗喜 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 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).

提交回复
热议问题