執(zhí)行 Flutter 包管理相關(guān)命令時(shí)有可能遇到 Waiting for another flutter command to release the startup lock... 這樣的錯(cuò)誤,可嘗試殺死所有的 dart 進(jìn)程解決:
// Linux
killall -9 dart
// Windows
taskkill /F /IM dart.exe
2020/07/26更新:
經(jīng)測試心墅,亦可通過刪除 flutter 安裝目錄下的 bin/cache/lockfile 文件解決软吐。
參考:
https://github.com/flutter/flutter/issues/7768
Waiting for another flutter command to release the startup lock.