cupertino_localizations 1.0.0+1依赖于intl ^0.15.8。

问题描述 投票:1回答:1

当我尝试 flutter packages get 命令时,我得到这个错误。

Because cupertino_localizations 1.0.0+1 depends on intl ^0.15.8 and first_flutter_app depends on intl ^0.16.0, cupertino_localizations 1.0.0+1 is forbidden.
So, because first_flutter_app depends on cupertino_localizations 1.0.0+1, version solving failed.
flutter dart flutter-layout flutter-dependencies
1个回答
1
投票

你可以通过使用0.15.8版本的intl使两个版本相同。

intl ^0.15.8

或者在依赖覆盖下添加intl。

dependency_overrides:
  intl ^0.16.0
© www.soinside.com 2019 - 2024. All rights reserved.