当前位置:网站首页>[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.cn
The 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_cmd
Create 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
边栏推荐
- 想问问,现在开户有优惠吗?在线开户是安全么?
- Roommate, a king of time, I took care of the C language structure memory alignment
- Jetson XAVIER NX上ResUnet-TensorRT8.2速度与显存记录表(后续不断补充)
- Review of the latest 2022 research on "deep learning methods for industrial defect detection"
- Web3js method to obtain account information and balance
- Resunet tensorrt8.2 speed and video memory record table on Jetson Xavier NX (continuously supplemented later)
- 【Kubernetes系列】kubeadm reset初始化前后空间、内存使用情况对比
- pytorch 模型保存的完整例子+pytorch 模型保存只保存可訓練參數嗎?是(+解决方案)
- 笔记本安装TIA博途V17后出现蓝屏的解决办法
- Backpack template
猜你喜欢
pytorch 模型保存的完整例子+pytorch 模型保存只保存可訓練參數嗎?是(+解决方案)
Motivation! Big Liangshan boy a remporté le prix Zhibo! Un article de remerciement pour les internautes qui pleurent
burp 安装 license key not recognized
笔记本安装TIA博途V17后出现蓝屏的解决办法
【Hot100】21. Merge two ordered linked lists
CS5268完美代替AG9321MCQ Typec多合一扩展坞方案
测试人员如何做不漏测?这7点就够了
[cloud native topic -49]:kubesphere cloud Governance - operation - step by step deployment of microservice based business applications - basic processes and steps
How to realize the function of detecting browser type in Web System
Jetson XAVIER NX上ResUnet-TensorRT8.2速度与显存记录表(后续不断补充)
随机推荐
In the era of consumer Internet, a few head platforms have been born
Research Report on the overall scale, major manufacturers, major regions, products and application segmentation of signal distributors in the global market in 2022
Google Earth engine (GEE) - Landsat 9 image full band image download (Beijing as an example)
Research Report on the overall scale, major manufacturers, major regions, products and application segmentation of sound quality head simulators in the global market in 2022
【Hot100】21. 合并两个有序链表
API documentation tool knife4j usage details
Burp install license key not recognized
2021 v+ Quanzhen internet global innovation and Entrepreneurship Challenge, one of the top ten audio and video scene innovation and application pioneers
[NLP] a detailed generative text Abstract classic paper pointer generator
How to realize the function of detecting browser type in Web System
How to open an account online? Is it safe to open a mobile account?
【实习】解决请求参数过长问题
Research Report on the overall scale, major manufacturers, major regions, products and application segmentation of precoated metallic coatings in the global market in 2022
Function, function, efficiency, function, utility, efficacy
Research Report on the overall scale, major manufacturers, major regions, products and applications of building automation power meters in the global market in 2022
Happy Lantern Festival! Tengyuanhu made you a bowl of hot dumplings!
SBT tutorial
Motivation! Big Liangshan boy a remporté le prix Zhibo! Un article de remerciement pour les internautes qui pleurent
Is it safe to open an account for online stock speculation? I'm a novice, please guide me
[fluent] dart generic (generic class | generic method | generic with specific type constraints)