添加此包失败(flutter_native_splash ^1.2.0 and flutter_launcher_icons 0.7.3,版本解析失败。)
Failed to add this package (flutter_native_splash ^1.2.0 and flutter_launcher_icons 0.7.3, version solving failed.)
我试图添加 flutter_launcher_icons 但是我得到了这个错误
Because flutter_launcher_icons >=0.7.1 <0.9.0 depends on yaml ^2.1.15 and flutter_native_splash 1.2.0 depends on yaml ^3.1.0, flutter_launcher_icons >=0.7.1 <0.9.0 is incompatible with flutter_native_splash 1.2.0. And because no versions of flutter_native_splash match >1.2.0 <2.0.0, flutter_launcher_icons >=0.7.1 <0.9.0 is incompatible with flutter_native_splash ^1.2.0. So, because <project_name> depends on both flutter_native_splash ^1.2.0 and flutter_launcher_icons 0.7.3, version solving failed.
pub get failed (1; So, because <project_name> depends on both flutter_native_splash ^1.2.0 and flutter_launcher_icons 0.7.3, version solving failed.)
exit code 1
如何解决这个问题?或者是否有兼容版本可以将 flutter_launcher_icons 与 flutter_native_screen
同步
这是由于 pubspec.yaml 中的版本不兼容造成的。通过比较和测试版本修复它们
我试图添加 flutter_launcher_icons 但是我得到了这个错误
Because flutter_launcher_icons >=0.7.1 <0.9.0 depends on yaml ^2.1.15 and flutter_native_splash 1.2.0 depends on yaml ^3.1.0, flutter_launcher_icons >=0.7.1 <0.9.0 is incompatible with flutter_native_splash 1.2.0. And because no versions of flutter_native_splash match >1.2.0 <2.0.0, flutter_launcher_icons >=0.7.1 <0.9.0 is incompatible with flutter_native_splash ^1.2.0. So, because <project_name> depends on both flutter_native_splash ^1.2.0 and flutter_launcher_icons 0.7.3, version solving failed. pub get failed (1; So, because <project_name> depends on both flutter_native_splash ^1.2.0 and flutter_launcher_icons 0.7.3, version solving failed.) exit code 1
如何解决这个问题?或者是否有兼容版本可以将 flutter_launcher_icons 与 flutter_native_screen
同步这是由于 pubspec.yaml 中的版本不兼容造成的。通过比较和测试版本修复它们