flutter 项目提示 Because cupertino_icons 1.0.2 requires SDK version >=2.12.0-0 <3.0.0

发布于 1周前 作者 phonegap100 最后一次编辑是 5天前 来自 分享

flutter 项目提示Because cupertino_icons 1.0.2 requires SDK version >=2.12.0-0 <3.0.0 and no versions of cupertino_icons match >1.0.2 <2.0.0, cupertino_icons ^1.0.2 is forbidden.So, because flutter_demo01 depends on cupertino_icons ^1.0.2, version solving failed.

D:\flutter2x\flutter_demo01> flutter run
The current Dart SDK version is 2.10.4.

Because cupertino_icons 1.0.2 requires SDK version >=2.12.0-0 <3.0.0 and no versions of cupertino_icons match >1.0.2 <2.0.0, cupertino_icons ^1.0.2 is forbidden.
So, because flutter_demo01 depends on cupertino_icons ^1.0.2, version solving failed.
Running "flutter pub get" in flutter_demo01...
pub get failed (1; So, because flutter_demo01 depends on cupertino_icons ^1.0.2, version solving failed.)

dart-v.jpg

解决方法:升级您的sdk

android_plugin.jpg

android-d.jpg


更多关于flutter 项目提示 Because cupertino_icons 1.0.2 requires SDK version >=2.12.0-0 <3.0.0的实战系列教程也可以访问 https://www.itying.com/category-92-b0.html

回到顶部
AI 助手
你好,我是IT营的 AI 助手
您可以尝试点击下方的快捷入口开启体验!