为什么在运行flutter doctor时会出现“非法url”错误?

xoefb8l8  于 2023-02-05  发布在  Flutter
关注(0)|答案(2)|浏览(140)

我已经在我的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。

qaxu7uf2

qaxu7uf21#

导航到git文件夹
在Git控制台中:(注意,本地更改将被忽略!)
git获取--全部
git重置--硬原点/主原点

6ie5vjzr

6ie5vjzr2#

这是什么工作对我来说-删除flutter文件夹,并取代它与一个从官方flutter网页

相关问题