我已经在我的macOS中安装了新版本的flutter。但是当试图运行flutter doctor
时,我得到了这个
Downloading Dart SDK from Flutter engine <<<<<<< HEAD
05e680e202af9a92461070cb2d9982acad46c83c
=======
d3ea636dc5d16b56819f3266241e1f708979c233
>>>>>>> 18116933e77adc82f80866c928266a5b4f1ed645...
curl: (3) URL using bad/illegal format or missing URL
Failed to retrieve the Dart SDK from: https://storage.googleapis.com/flutter_infra_release/flutter/<<<<<<< HEAD
05e680e202af9a92461070cb2d9982acad46c83c
=======
d3ea636dc5d16b56819f3266241e1f708979c233
>>>>>>> 18116933e77adc82f80866c928266a5b4f1ed645/dart-sdk-darwin-x64.zip
If you're located in China, please see this page:
https://flutter.dev/community/china
有没有已知的解决方案?我已经寻找了答案,但他们主要针对Windows。
2条答案
按热度按时间qaxu7uf21#
导航到git文件夹
在Git控制台中:(注意,本地更改将被忽略!)
git获取--全部
git重置--硬原点/主原点
6ie5vjzr2#
这是什么工作对我来说-删除flutter文件夹,并取代它与一个从官方flutter网页