【问题标题】:Because xml >=4.4.0 depends on petitparser ^3.1.0 and xml >=3.7.0 <4.4.0 depends on petitparser ^3.0.0, xml >=3.7.0 requires petitparser ^3.0.0因为 xml >=4.4.0 依赖于 petitparser ^3.1.0 而 xml >=3.7.0 <4.4.0 依赖于 petitparser ^3.0.0,所以 xml >=3.7.0 需要 petitparser ^3.0.0
【发布时间】:2020-12-07 06:50:36
【问题描述】:

[flutter_application] 颤振发布获取 在 flutter_application 中运行“flutter pub get”...
因为 xml >=4.4.0 依赖于 petitparser ^3.1.0 而 xml >=3.7.0 =3.7.0 需要 petitparser ^3.0.0。

并且由于 intl_utils 1.5.0 依赖于 petitparser >=1.1.3 =0.18.0 依赖于 xml ^4.1.0,因此 intl_utils 1.5.0 与 flutter_svg >=0.18.0 不兼容。

所以,因为“App”同时依赖flutter_svg ^0.18.0和intl_utils 1.5.0,所以版本解析失败。 pub get failed (1; 所以,因为“App”同时依赖于flutter_svg ^0.18.0和intl_utils 1.5.0,版本求解失败。) 退出代码 1

dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter

# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: 0.1.2
google_maps_flutter: 0.5.27
google_map_location_picker: 3.2.2
mvc_pattern: 5.1.0
global_configuration: 1.5.0
http: 0.12.1
intl: 0.16.0
html: 0.14.0+3
shared_preferences: 0.5.7
flutter_html: 0.11.1
flutter_svg: ^0.18.0
location: 3.0.2
dynamic_theme: 1.0.1
flutter_inappbrowser: 2.0.2
url_launcher: 5.4.5
firebase_messaging: 6.0.13
cached_network_image: 2.2.0
fluttertoast: 4.0.1
flutter_staggered_grid_view: 0.3.0
carousel_slider: 1.3.0
sticky_headers: ^0.1.8
intl_utils: ^1.6.3
photo_view: ^0.9.2

【问题讨论】:

  • 可以分享一下 pubspec.yaml 代码吗?
  • 我分享了我的 pubspec.yaml 的屏幕截图
  • 尝试安装intl_utils: ^1.6.3xml: ^4.4.0
  • 我安装了 intl_utils: ^1.6.3 并且没有错误,但是在运行应用程序时,在这一步配置默认 Firebase 应用程序...构建持续运行超过 10 分钟,所以我停止了它
  • 您好@pothurajusaichaitanya,欢迎来到SO。请查看此post 并考虑将图像替换为文本数据。这将改善那些试图回答您问题的人的体验。谢谢!

标签: flutter-dependencies


【解决方案1】:

我通过将intl_utils: ^1.6.3 添加到dependencies 并更改dependencies 中的intl: 0.16.1 解决了这个问题

【讨论】:

    【解决方案2】:

    我解决了

    块引用

    由波图拉朱·赛柴坦亚

    我通过将 intl_utils: ^1.6.3 添加到依赖项并更改依赖项中的 intl: 0.16.1 来解决它

    到最后

    dependency_overrides: intl: 0.17.0-nullsafety.2

    【讨论】:

      猜你喜欢
      • 2021-09-01
      • 2021-06-02
      • 1970-01-01
      • 2021-07-01
      • 2023-03-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多