Jedy
Jedy

Reputation: 133

I can't update flutter

I run the flutter upgrade command.
And the following error pops up:

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

Upvotes: 1

Views: 948

Answers (1)

Ilo Calistus
Ilo Calistus

Reputation: 2175

This shows that the local version of your Flutter repo is broken. To solve this, you have to completely delete the current Flutter SDK you have and download a new one.

Upvotes: 1

Related Questions