[英]Visual Studio Code Flutter Cannot Update Dart SDK
Because depends on cupertino_icons >=1.0.1 which requires SDK version >=2.12.0-0 <3.0.0, version solving failed.
因为依赖 cupertino_icons >=1.0.1 需要 SDK 版本 >=2.12.0-0 <3.0.0,版本求解失败。
whenever I tried to flutter run
, flutter pub get
, flutter pub upgrade
, I got this return in console.. I also have tried flutter update-packages
it returns每当我尝试
flutter run
flutter , flutter pub get
, flutter pub upgrade
时,我在控制台中得到了这个回报。我也试过flutter update-packages
它返回它
Flutter is already up to date on channel stable Flutter 1.22.5 • channel stable • https://github.com/flutter/flutter.git Framework • revision 7891006299 (3 weeks ago) • 2020-12-10 11:54:40 -0800 Engine • revision ae90085a84 Tools • Dart 2.10.4
Flutter is already up to date on channel stable Flutter 1.22.5 • channel stable • https://github.com/flutter/flutter.git Framework • revision 7891006299 (3 weeks ago) • 2020-12-10 11:54:40 -0800 引擎 • 修订版 ae90085a84 工具 • Dart 2.10.4
How can I update Dart SDK?如何更新 Dart SDK?
you should use 1.0.0 version of cupertino in your pubspec.yaml.您应该在您的 pubspec.yaml 中使用 1.0.0 版本的 cupertino。 I think there is a problem with new version of cupertino
我认为cupertino的新版本有问题
cupertino_icons: ^1.0.0
As of 2021-03-10 or earlier, it is no longer necessary to use cupertino_icons 1.0.0 or switch to the beta update channel ( flutter channel beta
).从 2021-03-10 或更早开始,不再需要使用 cupertino_icons 1.0.0 或切换到 beta 更新频道(
flutter channel beta
)。 Just upgrade ( flutter upgrade
) and re-run flutter pub get
.只需升级(
flutter upgrade
)并重新运行flutter pub get
。 For details, see issue 72231 .有关详细信息,请参阅问题 72231 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.