flutterpub get failed (server unavailable) -- attempting解决办法

Posted 黄毛火烧雪下

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了flutterpub get failed (server unavailable) -- attempting解决办法相关的知识,希望对你有一定的参考价值。

pub get failed (server unavailable) -- attempting retry 2 in 2 seconds...
Could not resolve URL "https://pub.flutter-io.cn".                      
pub get failed (server unavailable) -- attempting retry 3 in 4 seconds...
Could not resolve URL "https://pub.flutter-io.cn".                      
pub get failed (server unavailable) -- attempting retry 4 in 8 seconds...
Could not resolve URL "https://pub.flutter-io.cn".                      
pub get failed (server unavailable) -- attempting retry 5 in 16 seconds...
Could not resolve URL "https://pub.flutter-io.cn".                      
pub get failed (server unavailable) -- attempting retry 6 in 32 seconds...
Could not resolve URL "https://pub.flutter-io.cn".                      
pub get failed (server unavailable) -- attempting retry 7 in 64 seconds...

去flutter目录找到隐藏文件夹 .pub-cache 把缓存删了就可以了

命令行:

flutter pub cache clean

以上是关于flutterpub get failed (server unavailable) -- attempting解决办法的主要内容,如果未能解决你的问题,请参考以下文章

service docker start 报错 :Failed to start docker.se

Command “python setup.py egg_info“ failed with error code 1 in /tmp/pip-build-qhrdtysk/mysqlclient/(

Failed to execute 'setRequestHeader' on 'XMLHttpRequest': The object's state mus

翻译he failed to get a ticket

chainmaker-go-sdk get cert hash failed, get cert hash failed, send QUERY_SYSTEM_CONTRACT failed

centos7启动MySQL报 Job for mysqld.service failed because the control process exited with error code. Se