我运行 flutter upgrade 命令。
并弹出以下错误:
ProcessException: Process exited abnormally:
error: cannot lock ref 'refs/remotes/origin/beta': unable to resolve reference 'refs/remotes/origin/beta': reference broken
From https://github.com/flutter/flutter
! [new branch] beta -> origin/beta (unable to update local ref)
error: cannot lock ref 'refs/remotes/origin/master': unable to resolve reference 'refs/remotes/origin/master': reference broken
! [new branch] master -> origin/master (unable to update local ref)
Command: git fetch --tags
答案 0 :(得分:0)
这表明您的 Flutter 存储库的本地版本已损坏。要解决这个问题,你必须彻底删除你现有的 Flutter SDK 并下载一个新的。