Flutter报错 Waiting for another flutter command to release the startup lock...

Posted jukaiit

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Flutter报错 Waiting for another flutter command to release the startup lock...相关的知识,希望对你有一定的参考价值。

 

Waiting for another flutter command to release the startup lock… 异常解决


平时我们在开发flutter过程中,在执行flutter packages get 命令 或者 flutter packages upgrade之后,

经常遇到这个错误提示:

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

然后你会发现会发现在任何地方执行flutter命令,都会遇到这个错误。

 

一般情况下,你会关闭项目,重启IDE,但这些操作都无效,除非你重启电脑。

这里给出一个非常简单的解决方法:

进入到你的flutter sdk目录中,然后找到bin/cache/lockfile文件,删除它即可。

删除之后你再运行

flutter packages get

就已经解决了。

 

参考:

https://github.com/flutter/flutter/issues/7768

以上是关于Flutter报错 Waiting for another flutter command to release the startup lock...的主要内容,如果未能解决你的问题,请参考以下文章

flutter run 时一直 Waiting for another flutter command to release the startup lock

Waiting for another flutter command to release the startup lock... 异常解决

Waiting for another flutter command to release the startup lock... 异常解决

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

flutter 之Waiting for another flutter command to release the startup lock...和Running Gradle task '

HttpClient报错Timeout waiting for connection from pool