gpt4 book ai didi

dart - Flutter 下省 Dart 版

转载 作者:IT老高 更新时间:2023-10-28 12:37:47 30 4
gpt4 key购买 nike

当我运行 flutter get packages 命令时,由于我的 Flutter 设置的 Dart 版本,我收到以下错误:

[project_name] flutter packages get Running "flutter packages get" in project_name...
The current Dart SDK version is 2.1.0-dev.0.0.flutter-be6309690f.

Because project depends on intl_translation >=0.14.0+1 <0.17.0 which requires SDK version >=1.12.0 <2.0.0, version solving failed. pub get failed (1) exit code 1

我的框架版本:

Flutter 0.6.0 • channel beta • https://github.com/flutter/flutter.git
Framework • revision 9299c02cf7 (2 weeks ago) • 2018-08-16 00:35:12 +0200
Engine • revision e3687f70c7
Tools • Dart 2.1.0-dev.0.0.flutter-be6309690f

我想知道是否有某种命令可以降低 flutter 框架的 dart-sdk 版本,在此先感谢。

最佳答案

在 Flutter 安装目录下执行

git checkout v"0.5.0" // for example

您可以在 Flutter GitHub 存储库中查看哪些版本可用 https://github.com/flutter/flutter

关于dart - Flutter 下省 Dart 版,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52102360/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com