D:\>flutter create xxx Command exited with code 128: git fetch --tags Standard error: fatal: unable to access 'https://github.com/flutter/flutter.git/': OpenSSL SSL_read: Connection was reset, errno 10054 Flutter assets will be downloaded from https://mirrors.tuna.tsinghua.edu.cn/flutter. Make sure you trust this source! "zhigeweb-app" is not a valid Dart package name. See https://dart.dev/tools/pub/pubspec#name for more information.
原因电脑网速不行,连不上GitHub更新不了,解决办法把flutter远程地址换成码云
根据这个思路,以后我们遇见github上的东西搞不下来,就去码云找。一般明星项目码云官方都会提供同步,小项目可以自己在码云新建一个仓库从GitHub同步即可。
配置系统环境变量
FLUTTER_GIT_URL=https://gitee.com/mirrors/Flutter.git
重新更新(若权限不够就换成管理员终端)
flutter upgrade --force
————————————————
版权声明:本文为CSDN博主「SUNbrightness」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/SUNbrightness/article/details/123737608
本站文章除注明转载/出处外,均为原创,若要转载请务必注明出处。转载后请将转载链接通过邮件告知我站,谢谢合作。本站邮箱:admin@only4.work
尊重他人劳动成果,共创和谐网络环境。点击版权声明查看本站相关条款。