当前位置:网站首页>[error record] the command line creates an error pub get failed (server unavailable) -- attempting retry 1 in 1 second
[error record] the command line creates an error pub get failed (server unavailable) -- attempting retry 1 in 1 second
2022-07-02 20:36:00 【Programmer community】
Officially recommended Chinese image : https://flutter.dev/community/china
Find the cause of the problem , From Shanghai Jiaotong University Flutter Caused by image failure , Or temporary failure ; ( Anyway, it's useless today )
Shanghai Jiaotong University Linux User GroupFLUTTER_STORAGE_BASE_URL: https://mirrors.sjtug.sjtu.edu.cn/PUB_HOSTED_URL: https://dart-pub.mirrors.sjtug.sjtu.edu.cn/After using the official image , perform flutter create flutter_cmd Command successfully created application ;
PUB_HOSTED_URL : https://pub.flutter-io.cnFLUTTER_STORAGE_BASE_URL : https://storage.flutter-io.cnThe image needs to be set to the environment variable ;
One 、 Error message
Create... Using the command line Flutter application , The order is as follows :
flutter create flutter_cmdCreate a Flutter application , The application name is flutter_cmd ;
Error message :
D:\002_Project\002_Android_Learn\Flutter_Cmd>flutter create flutter_cmdCreating project flutter_cmd... androidx: true flutter_cmd\.gitignore (created) flutter_cmd\.idea\libraries\Dart_SDK.xml (created) flutter_cmd\.idea\libraries\Flutter_for_Android.xml (created) flutter_cmd\.idea\libraries\KotlinJavaRuntime.xml (created) flutter_cmd\.idea\modules.xml (created) flutter_cmd\.idea\runConfigurations\main_dart.xml (created) flutter_cmd\.idea\workspace.xml (created) flutter_cmd\.metadata (created) flutter_cmd\android\app\build.gradle (created) flutter_cmd\android\app\src\main\kotlin\com\example\flutter_cmd\MainActivity.kt (created) flutter_cmd\android\build.gradle (created) flutter_cmd\android\flutter_cmd_android.iml (created) flutter_cmd\android\.gitignore (created) flutter_cmd\android\app\src\debug\AndroidManifest.xml (created) flutter_cmd\android\app\src\main\AndroidManifest.xml (created) flutter_cmd\android\app\src\main\res\drawable\launch_background.xml (created) flutter_cmd\android\app\src\main\res\mipmap-hdpi\ic_launcher.png (created) flutter_cmd\android\app\src\main\res\mipmap-mdpi\ic_launcher.png (created) flutter_cmd\android\app\src\main\res\mipmap-xhdpi\ic_launcher.png (created) flutter_cmd\android\app\src\main\res\mipmap-xxhdpi\ic_launcher.png (created) flutter_cmd\android\app\src\main\res\mipmap-xxxhdpi\ic_launcher.png (created) flutter_cmd\android\app\src\main\res\values\styles.xml (created) flutter_cmd\android\app\src\profile\AndroidManifest.xml (created) flutter_cmd\android\gradle\wrapper\gradle-wrapper.properties (created) flutter_cmd\android\gradle.properties (created) flutter_cmd\android\settings.gradle (created) flutter_cmd\ios\Runner\AppDelegate.swift (created) flutter_cmd\ios\Runner\Runner-Bridging-Header.h (created) flutter_cmd\ios\Runner.xcodeproj\project.pbxproj (created) flutter_cmd\ios\Runner.xcodeproj\xcshareddata\xcschemes\Runner.xcscheme (created) flutter_cmd\ios\.gitignore (created) flutter_cmd\ios\Flutter\AppFrameworkInfo.plist (created) flutter_cmd\ios\Flutter\Debug.xcconfig (created) flutter_cmd\ios\Flutter\Release.xcconfig (created) flutter_cmd\ios\Runner\Assets.xcassets\AppIcon.appiconset\Contents.json (created) flutter_cmd\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-1024x1024@1x.png (created) flutter_cmd\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-20x20@1x.png (created) flutter_cmd\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-20x20@2x.png (created) flutter_cmd\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-20x20@3x.png (created) flutter_cmd\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-29x29@1x.png (created) flutter_cmd\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-29x29@2x.png (created) flutter_cmd\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-29x29@3x.png (created) flutter_cmd\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-40x40@1x.png (created) flutter_cmd\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-40x40@2x.png (created) flutter_cmd\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-40x40@3x.png (created) flutter_cmd\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-60x60@2x.png (created) flutter_cmd\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-60x60@3x.png (created) flutter_cmd\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-76x76@1x.png (created) flutter_cmd\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-76x76@2x.png (created) flutter_cmd\ios\Runner\Assets.xcassets\AppIcon.appiconset\Icon-App-83.5x83.5@2x.png (created) flutter_cmd\ios\Runner\Assets.xcassets\LaunchImage.imageset\Contents.json (created) flutter_cmd\ios\Runner\Assets.xcassets\LaunchImage.imageset\LaunchImage.png (created) flutter_cmd\ios\Runner\Assets.xcassets\LaunchImage.imageset\LaunchImage@2x.png (created) flutter_cmd\ios\Runner\Assets.xcassets\LaunchImage.imageset\LaunchImage@3x.png (created) flutter_cmd\ios\Runner\Assets.xcassets\LaunchImage.imageset\README.md (created) flutter_cmd\ios\Runner\Base.lproj\LaunchScreen.storyboard (created) flutter_cmd\ios\Runner\Base.lproj\Main.storyboard (created) flutter_cmd\ios\Runner\Info.plist (created) flutter_cmd\ios\Runner.xcodeproj\project.xcworkspace\contents.xcworkspacedata (created) flutter_cmd\ios\Runner.xcworkspace\contents.xcworkspacedata (created) flutter_cmd\lib\main.dart (created) flutter_cmd\flutter_cmd.iml (created) flutter_cmd\pubspec.yaml (created) flutter_cmd\README.md (created) flutter_cmd\test\widget_test.dart (created)Because flutter_cmd depends on cupertino_icons any which doesn't exist (could not find package cupertino_icons at https://storage.flutter-io.cn), version solving failed.pub get failed (server unavailable) -- attempting retry 1 in 1 second...Because flutter_cmd depends on cupertino_icons any which doesn't exist (could not find package cupertino_icons at https://storage.flutter-io.cn), version solving failed.pub get failed (server unavailable) -- attempting retry 2 in 2 seconds...Because flutter_cmd depends on cupertino_icons any which doesn't exist (could not find package cupertino_icons at https://storage.flutter-io.cn), version solving failed.pub get failed (server unavailable) -- attempting retry 3 in 4 seconds...Because flutter_cmd depends on cupertino_icons any which doesn't exist (could not find package cupertino_icons at https://storage.flutter-io.cn), version solving failed.pub get failed (server unavailable) -- attempting retry 4 in 8 seconds...Running "flutter pub get" in flutter_cmd... | Terminate the batch operation (Y/N)? yD:\002_Project\002_Android_Learn\Flutter_Cmd>
Two 、 Solution
Flutter The two sources of have no set pair , I met this problem before , It is also caused by source failure ;
【 Error log 】Flutter Report errors Downloading the Dart SDK using the BITS service failed, retrying with WebRequest…
Use the source of the official Chinese community , You can complete the command line creation ;
PUB_HOSTED_URL : https://pub.flutter-io.cnFLUTTER_STORAGE_BASE_URL : https://storage.flutter-io.cn

边栏推荐
- CS5268完美代替AG9321MCQ Typec多合一扩展坞方案
- Codeforces round 651 (Div. 2) (a thinking, B thinking, C game, D dichotomy, e thinking)
- Wu Enda's machine learning mind mapping insists on clocking in for 23 days - building a knowledge context, reviewing, summarizing and replying
- 现在券商的优惠开户政策什么?实际上网上开户安全么?
- Research Report on the overall scale, major manufacturers, major regions, products and application segmentation of multi-channel signal conditioners in the global market in 2022
- Highly qualified SQL writing: compare lines. Don't ask why. Asking is highly qualified..
- How can testers do without missing tests? Seven o'clock is enough
- Research Report on the overall scale, major manufacturers, major regions, products and applications of capacitive voltage transformers in the global market in 2022
- 接口测试到底怎么做?看完这篇文章就能清晰明了
- GCC: Graph Contrastive Coding for Graph Neural NetworkPre-Training
猜你喜欢

The first of the classic quotations of correspondents is heartbreaking

疫情封控65天,我的居家办公心得分享 | 社区征文
![[cloud native topic -50]:kubesphere cloud Governance - operation - step by step deployment of microservice based business applications - database middleware MySQL microservice deployment process](/img/e6/1dc747de045166f09ecdce1c5a34b1.jpg)
[cloud native topic -50]:kubesphere cloud Governance - operation - step by step deployment of microservice based business applications - database middleware MySQL microservice deployment process

pytorch 模型保存的完整例子+pytorch 模型保存只保存可训练参数吗?是(+解决方案)

【871. 最低加油次数】

How to realize the function of detecting browser type in Web System

Roommate, a king of time, I took care of the C language structure memory alignment
In depth understanding of modern web browsers (I)

外包干了三年,废了...

Database schema notes - how to choose the right database in development + who invented relational database?
随机推荐
Self-Improvement! Daliangshan boys all award Zhibo! Thank you for your paper
证券如何在线开户?手机开户是安全么?
[cloud native topic -49]:kubesphere cloud Governance - operation - step by step deployment of microservice based business applications - basic processes and steps
B-end e-commerce - reverse order process
Postman interface test practice, these five questions you must know
【Hot100】23. 合并K个升序链表
【Hot100】21. 合并两个有序链表
Implementing yolox from scratch: dataset class
burp 安装 license key not recognized
通信人的经典语录,第一条就扎心了……
【Hot100】22. bracket-generating
接口测试到底怎么做?看完这篇文章就能清晰明了
Web3js method to obtain account information and balance
[JS] get the search parameters of URL in hash mode
After 65 days of closure and control of the epidemic, my home office experience sharing | community essay solicitation
Taiwan SSS Xinchuang sss1700 replaces cmmedia cm6533 24bit 96KHz USB audio codec chip
Research Report on the overall scale, major manufacturers, major regions, products and applications of micro hydraulic cylinders in the global market in 2022
Activation function - relu vs sigmoid
Codeforces Round #771 (Div. 2)(A-C)
测试人员如何做不漏测?这7点就够了