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

边栏推荐
- Spark source code compilation, cluster deployment and SBT development environment integration in idea
- Research Report on the overall scale, major manufacturers, major regions, products and applications of capacitive voltage transformers in the global market in 2022
- Want to ask, is there any discount for opening an account now? Is it safe to open an account online?
- ROS learning (10): ROS records multiple topic scripts
- B-end e-commerce - reverse order process
- Automated video production
- How can testers do without missing tests? Seven o'clock is enough
- C language linked list -- to be added
- Is it safe to open an account for online stock speculation? I'm a novice, please guide me
- Research Report on the overall scale, major manufacturers, major regions, products and application segmentation of shock absorber oil in the global market in 2022
猜你喜欢

Detailed upgrade process of AWS eks

Activation function - relu vs sigmoid

How to do interface testing? After reading this article, it will be clear

Database schema notes - how to choose the right database in development + who invented relational database?

SBT tutorial

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

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

测试人员如何做不漏测?这7点就够了

API documentation tool knife4j usage details

Driverless learning (4): Bayesian filtering
随机推荐
After 65 days of closure and control of the epidemic, my home office experience sharing | community essay solicitation
Research and Analysis on the current situation of China's clamping device market and forecast report on its development prospect
B端电商-订单逆向流程
Properties of expectation and variance
Complete example of pytorch model saving +does pytorch model saving only save trainable parameters? Yes (+ solution)
Database schema notes - how to choose the right database in development + who invented relational database?
At compilation environment setup -win
I would like to ask what securities dealers recommend? Is it safe to open a mobile account?
Basic concept of database, installation and configuration of database, basic use of MySQL, operation of database in the project
[fluent] dart technique (independent main function entry | nullable type determination | default value setting)
burp 安装 license key not recognized
想请教一下,究竟有哪些劵商推荐?手机开户是安全么?
【JS】获取hash模式下URL的搜索参数
2021 v+ Quanzhen internet global innovation and Entrepreneurship Challenge, one of the top ten audio and video scene innovation and application pioneers
For (Auto A: b) and for (Auto & A: b) usage
Research Report on the overall scale, major manufacturers, major regions, products and application segmentation of precoated metallic coatings in the global market in 2022
【Hot100】21. Merge two ordered linked lists
An analysis of the past and present life of the meta universe
upload-labs
Internal/validators js:124 throw new ERR_ INVALID_ ARG_ Type (name, 'string', value) -- solution