当我尝试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
关于flutter - cupertino_localizations 1.0.0 + 1取决于国际^ 0.15.8,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/61565782/