Flutter – firebase_auth_web 5.4.0 depends on intl ^0.17.0 but I must use higher version (intl ^0.18.0)

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

Flutter - firebase_auth_web 5.4.0 depends on intl ^0.17.0 but I must use higher version (intl ^0.18.0)

问题

Flutter依赖错误:

因为firebase_auth_web 5.4.0 依赖于 intl ^0.17.0,而没有版本的firebase_auth_web匹配 >5.4.0 <6.0.0,所以firebase_auth_web ^5.4.0 需要 intl ^0.17.0。
因此,因为ventus依赖于intl ^0.18.0和firebase_auth_web ^5.4.0,版本解决失败。
退出代码1

我有其他依赖项,我必须使用 intl: ^0.18.0

有没有办法解决与 firebase_auth_web 的依赖关系?

这源于 firebase_auth: ^4.5.0 - 这是最新版本

我尝试降低依赖版本 - 但没有成功 - 最终到达了非空安全的包,无法继续。

英文:

Flutter Dependencies error:

Because firebase_auth_web 5.4.0 depends on intl ^0.17.0 and no versions of firebase_auth_web match &gt;5.4.0 &lt;6.0.0, firebase_auth_web ^5.4.0 requires intl ^0.17.0.
So, because ventus depends on both intl ^0.18.0 and firebase_auth_web ^5.4.0, version solving failed.
exit code 1

I have other dependencies and I must use intl: ^0.18.0

Is there a way to resolve the dependency with firebase_auth_web ?

It originates from firebase_auth: ^4.5.0 - this is the latest version

I tried lowering dependencies - but no success - I eventually get to non-null-safty packages and can't continue from there.

答案1

得分: 2

Sure, here's the translated part:

请在dependencies之后添加dependency_overrides

dependencies:
  # 用于本地化(firebase_ui_auth使用)
  flutter_localizations:
    sdk: flutter

# 用于覆盖依赖版本
dependency_overrides:
  intl: 0.18.0
英文:

Please add dependency_overrides after dependecies

dependencies:
  # for localizations (firebase_ui_auth uses)
  flutter_localizations:
      sdk: flutter

# for rest
dependency_overrides:
  intl: 0.18.0

huangapple
  • 本文由 发表于 2023年5月11日 16:13:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/76225454.html
匿名

发表评论

匿名网友

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

确定