当前位置:网站首页>[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

边栏推荐
- Research Report on the overall scale, major manufacturers, major regions, products and applications of battery control units in the global market in 2022
- 【Hot100】23. Merge K ascending linked lists
- An analysis of the past and present life of the meta universe
- Automated video production
- What is online account opening? Is it safe to open an account online now?
- 在消费互联网时代,诞生了为数不多的头部平台的话
- [cloud native topic -50]:kubesphere cloud Governance - operation - step by step deployment of microservice based business applications - database middleware MySQL microservice deployment process
- For (Auto A: b) and for (Auto & A: b) usage
- Number of DP schemes
- Research and Analysis on the current situation of China's clamping device market and forecast report on its development prospect
猜你喜欢

【Hot100】21. 合并两个有序链表

勵志!大凉山小夥全獎直博!論文致謝看哭網友

B-end e-commerce - reverse order process

Second hand housing data analysis and prediction system

为什么我对流程情有独钟?

【Hot100】21. Merge two ordered linked lists

How can testers do without missing tests? Seven o'clock is enough

GCC: Graph Contrastive Coding for Graph Neural NetworkPre-Training

攻防世界pwn题:Recho

八年测开经验,面试28K公司后,吐血整理出高频面试题和答案
随机推荐
Properties of expectation and variance
在券商账户上买基金安全吗?哪里可以买基金
Select function
Sweet talk generator, regular greeting email machine... Open source programmers pay too much for this Valentine's day
Google Earth Engine(GEE)——Landsat 9影像全波段影像下载(北京市为例)
Redis sentinel cluster working principle and architecture deployment # yyds dry goods inventory #
【Hot100】22. 括号生成
Postman interface test practice, these five questions you must know
esp32c3 crash分析
在消费互联网时代,诞生了为数不多的头部平台的话
C language linked list -- to be added
Self-Improvement! Daliangshan boys all award Zhibo! Thank you for your paper
JDBC | Chapter 4: transaction commit and rollback
Research Report on the overall scale, major manufacturers, major regions, products and application segmentation of voltage source converters in the global market in 2022
Roommate, a king of time, I took care of the C language structure memory alignment
[871. Minimum refueling times]
[real case] trap of program design - beware of large data
sql-labs
[fluent] dart function (function composition | private function | anonymous function | function summary)
B-end e-commerce - reverse order process