flutter upgrade error

ProcessException: Process exited abnormally:
fatal: unable to access 'https://github.com/flutter/flutter.git/': OpenSSL SSL_read: Connection was reset, errno 10054
  Command: git fetch --tags
 

The reason is that the computer network speed is not good, and github cannot be updated. The solution is to replace the flutter remote address with code cloud

According to this idea, in the future, when we encounter something on github that cannot be solved, we will go to Code Cloud to find it. Generally, the star project Code Cloud officially provides synchronization, and small projects can create a new warehouse in Code Cloud and synchronize from github.

Configure system environment variables

FLUTTER_GIT_URL=https://gitee.com/mirrors/Flutter.git

Re-update (if the permissions are not enough, replace it with an administrator terminal)

flutter upgrade --force

Guess you like

Origin blog.csdn.net/SUNbrightness/article/details/123737608