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

Posted lyj0309

tags:

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

看了网上很多解决办法,一般是找到fluttersdk的bin的cache目录下的lockfile然后删掉

然鹅。。。正常情况下一般不会让你删,一般显示有进程占用...

 

于是换了种思维,发现在win下每次运行flutter,git-remote都要发送次请求,目的的是GitHub

技术图片

 

 处于天朝,我是移动网络,所以上GitHub速度非常慢,而每次这个git-remote都要接受1.33m才会进行下一个动作

如果不断开,快的时候10几秒搞定,慢的时候直接卡死,

如果ctrl+c结束再运行也是没用

尝试去直接断开连接,直接进行下一个任务,且没有影响,就像这样

技术图片

 

 开了科网还是慢,也不知道为啥。。。可能这就是天朝把??

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

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...

Timed out waiting for process (xxx) to appear on错误