dar pub上传失败如何解决

来源:
网络
收录时间:
2021-04-08 13:06:40
科技 阅读 847

摘要:https,flutter 问题: Flutter Exception: Pub will wait for a while before trying to connect again.

问题: Flutter Exception: Pub will wait for a while before trying to connect again.

解决

  1. 设置终端代理
export http_proxy=http://127.0.0.1:1080;
export https_proxy=http://127.0.0.1:1080;

2.使用curl google.com测试是否连通

curl google.com

3.禁用设置的镜像源

unset FLUTTER_STORAGE_BASE_URL;
unset PUB_HOSTED_URL;

4.检查是否可上传

flutter packages pub publish --dry-run --server=https://pub.dartlang.org

5.上传

flutter packages pub publish --server=https://pub.dartlang.org

dar pub上传失败如何解决

原文地址:https://www.cnblogs.com/meetqy/p/11250024.html

查看全文
返回顶部