有时候执行flutter命令会出现

Waiting for another flutter command to release the startup lock...

这是因为前一次的命令没有正常结束。

解决方案很简单:

去目录flutter/bin/cache/lockfile 删除lockfile文件,然后重新执行命令即可。