Flutter 开发环境搭建Unable to ‘pub upgrade‘ flutter tool. Retrying in five seconds...

Posted 郭梧悠

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Flutter 开发环境搭建Unable to ‘pub upgrade‘ flutter tool. Retrying in five seconds...相关的知识,希望对你有一定的参考价值。

好久没更新Flutter专栏了,一是因为懒。而是因为在公司的Windows 10上配置flutter环境总是出错,然后就以此为借口懒得弄了,这不Flutter 2.0出现了,又燃起了我学习Flutter的热情。今天周末来公司加班,就一举搞定了flutter的开发环境配置问题。

配置流程如下:
1、在github上搜flutter,然后将其clone到本地
2、配置好环境变量
3、配置好镜像,配置好以后需要重启电脑,这一点很重要,如果不配置镜像的话,会出现“Unable to ‘pub upgrade’ flutter tool. Retrying in five seconds…”的错误。

E:\\flutter\\bin>flutter doctor
Checking Dart SDK version...
Downloading Dart SDK from Flutter engine ...
Downloading the Dart SDK using the BITS service failed, retrying with WebRequest...
Building flutter tool...
Running pub upgrade...
Got TLS 

以上是关于Flutter 开发环境搭建Unable to ‘pub upgrade‘ flutter tool. Retrying in five seconds...的主要内容,如果未能解决你的问题,请参考以下文章

Flutter环境配置问题Unable to find bundled Java version.

Python科学计算windows下开发环境搭建(当用pip安装出现Unable to find vcvarsall.bat)

Flutter问题记录 - Unable to find bundled Java version

Flutter Unable to ‘pub upgrade‘ flutter tool

Flutter Unable to ‘pub upgrade‘ flutter tool

Flutter小记2Android加载图片资源出现Unable to load asset的解决方案