【问题标题】:Failed to add this package (flutter_native_splash ^1.2.0 and flutter_launcher_icons 0.7.3, version solving failed.)添加此包失败(flutter_native_splash ^1.2.0 和flutter_launcher_icons 0.7.3,版本解析失败。)
【发布时间】:2021-07-10 15:13:55
【问题描述】:

我试图添加flutter_launcher_icons,但我收到了这个错误

因为 flutter_launcher_icons >=0.7.1 =0.7.1 1.2.0 =0.7.1 依赖于 flutter_native_splash ^1.2.0 和 flutter_launcher_icons 0.7.3,版本求解失败。 pub get failed (1; 所以,因为 依赖于 flutter_native_splash ^1.2.0 和 flutter_launcher_icons 0.7.3,版本求解失败。) 退出代码 1

如何解决这个问题?或者是否有兼容版本可以将flutter_launcher_iconsflutter_native_screen 同步

【问题讨论】:

    标签: flutter icons flutter-dependencies splash-screen


    【解决方案1】:

    这是由于 pubspec.yaml 中的版本不兼容造成的。通过比较和测试版本来修复它们

    【讨论】:

      猜你喜欢
      • 2019-02-22
      • 2022-07-08
      • 2020-12-16
      • 2021-07-08
      • 1970-01-01
      • 2021-04-19
      • 2022-06-12
      • 2022-08-11
      • 2022-08-23
      相关资源
      最近更新 更多