当我尝试 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.
你可以通过使用0.15.8版本的intl使两个版本相同。
intl ^0.15.8
或者在依赖覆盖下添加intl。
dependency_overrides:
intl ^0.16.0