执行更新:
|
|
报错如下:
This is an unexpected error. Please run
|
|
and include the logs in an issue on https://github.com/dart-lang/pub/issues/new
Error: Unable to ‘pub upgrade’ flutter tool. Retrying in five seconds… (1 tries left)
Command ‘pub upgrade’ still failed after 10 tries, giving up.
解决方式:
卸载flutter SDK 重新安装
//配置环境变量
|
|
|
|
|
|
//下载SDK
|
|
//配置SDK的环境变量
|
|
安装
|
|
备注:执行flutter doctor的时候,可能会报上面同样的错误,耐心等待一下,挂梯子,重新执行
xcode工具链有问题的
|
|