flutter 项目提示 Because cupertino_icons 1.0.2 requires SDK version >=2.12.0-0 <3.0.0
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.)
解决方法:升级您的sdk
更多关于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