Waiting for another flutter command to release the startup lock.

1.问题

AndroidStudio开发Flutter项目时,AndroidStudio控制台提示:

Waiting for another flutter command to release the startup lock…

然后就会一直卡着不动,手动在命令行输入"flutter --version"也是提示如此:

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

2.解决

关闭AndroidStudio,找到fullter安装目录:

 which flutter
/xxx/flutterSDK/flutter/bin/flutter

删除掉 flutter\bin\cache目录下的lockfile文件:

Waiting for another flutter command to release the startup lock._第1张图片

3.验证

flutter --version
Flutter 3.3.8 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 52b3dc25f6 (3 months ago) • 2022-11-09 12:09:26 +0800
Engine • revision 857bd6b74c
Tools • Dart 2.18.4 • DevTools 2.15.0

此时重启AndroidStudio,发现一切正常。

你可能感兴趣的:(flutter,flutter,android,android,studio)