在開發Flutter中導入第三方庫報Waiting for another flutter command to release the startup lock… 異常解決
D:\flutter\bin\flutter.bat --no-color packages get
Waiting for another flutter command to release the startup lock...
一般情況下,關閉項目,重啓IDE,這些操作都無效.
解決方案:
進入到flutter sdk目錄中,然後找到bin/cache/lockfile
文件,刪除它即可。
刪除之後你再運行flutter doctor
,你會發現錯誤已經解決了。
注: 如果lockfile
文件一直刪除不了,需要在任務管理器把所有的dart進程刪除掉.或者重啓電腦