“flutter dependences version solving failed” 可翻译为 “Flutter依赖版本解决失败”。

huangapple go评论69阅读模式
英文:

flutter dependences version solving failed

问题

因为 u_lo_musico_v3 依赖于 awesome_calendar ^1.1.3,而 awesome_calendar 又依赖于 intl ^0.17.0,所以需要使用 intl ^0.17.0。但是由于 u_lo_musico_v3 也依赖于 intl ^0.18.0,导致版本解析失败。

英文:

I am facing this error. I really want to use both packages but I can't figure out how to solve the next error. Can you help me?

Because u_lo_musico_v3 depends on awesome_calendar ^1.1.3 which depends on intl ^0.17.0, intl ^0.17.0 is required.
So, because u_lo_musico_v3 depends on intl ^0.18.0, version solving failed.

答案1

得分: 1

有几件事情你可以做。

  • 将你正在使用的 intl 库版本降级到 0.17.0,因为 awesome_calendar 与你的 pubspec 中的版本 0.18.0 不兼容。
  • 你可以在依赖项覆盖中添加 intl ^0.17.0。这会覆盖任何依赖可能使用的 intl 的所有版本,并将其解析为 0.17.0
英文:

There are a few things you could do.

  • Downgrade the version of intl library that you are using to version 0.17.0 as awesome_calendar is not compatible with what is in your pubspec 0.18.0.
  • You could add intl ^0.17.0 under dependency overrides. Which overrides all versions of intl that whatever dependency may use and resolves it to 0.17.0

huangapple
  • 本文由 发表于 2023年5月14日 18:32:57
  • 转载请务必保留本文链接:https://go.coder-hub.com/76246991.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定