flutter upgrade 报错

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
 

原因电脑网速不行,连不上github 更新不了,解决办法把flutter远程地址换成码云

根据这个思路,以后我们遇见github上的东西搞不下来,就去码云找。一般明星项目码云官方都会提供同步,小项目可以自己在码云新建一个仓库从github同步即可。

配置系统环境变量

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

重新更新(若权限不够就换成管理员终端)

flutter upgrade --force

猜你喜欢

转载自blog.csdn.net/SUNbrightness/article/details/123737608