英文:
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 pubspec0.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 to0.17.0
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论