无法更新颤振

时间:2021-06-23 06:17:01

标签: flutter dart sdk

我正在尝试运行 flutter upgradeflutter doctor 之类的命令,甚至当我尝试检查通道 flutter channel 时,但它只向我显示了这些特定的命令集 -

Downloading Dart SDK from Flutter engine <<<<<<< HEAD
2dce47073a378673f6ca095e91b8065544c3a881
=======
91c9fc8fe011352879e3bb6660966eafc0847233
>>>>>>> d79295af24c3ed621c33713ecda14ad196fd9c31...
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
2dce47073a378673f6ca095e91b8065544c3a881
=======
91c9fc8fe011352879e3bb6660966eafc0847233
>>>>>>> d79295af24c3ed621c33713ecda14ad196fd9c31/dart-sdk-darwin-x64.zip
If you're located in China, please see this page:
  https://flutter.dev/community/china

如果有人遇到类似问题或知道该怎么做...请帮忙。

2 个答案:

答案 0 :(得分:0)

更改 engine.version CRLF -> LF

有关更多信息,您可以查看此 https://github.com/flutter/flutter/issues/35921

答案 1 :(得分:0)

您的 Flutter SDK 内部文件中似乎有合并冲突标记(例如 bin/internal/engine.version)。

您可以使用 flutter ugprade --force 或按照此处的说明解决此问题:

https://github.com/flutter/flutter/wiki/Workarounds-for-common-issues#flutter-installation-corrupted

在 Flutter 安装目录中运行以下命令

git clean -xfd
git stash save --keep-index
git stash drop
git pull
flutter doctor