1

更新后,我所有的课程都出现错误。我也尝试过flutter clean。每当我运行 flutter pub get 命令时,我都会收到以下错误。

Because no versions of intl_utils match >1.8.0 <1.9.0 and intl_utils ^1.9.0 depends on intl_translation 0.17.10+1, intl_utils >1.8.0 <2.0.0 requires intl_translation 0.17.10+1.
And because intl_utils 1.8.0 depends on intl_translation 0.17.10 which depends on intl >=0.15.3 <0.17.0, intl_utils ^1.8.0 requires intl >=0.15.3 <0.17.0 or intl_translation 0.17.10.
And because intl_translation 0.17.10 depends on intl >=0.15.3 <0.17.0 and every version of flutter_localizations from sdk depends on intl 0.17.0, intl_utils ^1.8.0 is incompatible with flutter_localizations from sdk.
So, because markets depends on both flutter_localizations any from sdk and intl_utils ^1.8.0, version solving failed.
pub get failed (1; So, because markets depends on both flutter_localizations any from sdk and intl_utils ^1.8.0, version solving failed.)
4

1 回答 1

1

是的,尝试降级你的颤振版本。我遇到过同样的问题

flutter downgrade 1.22.6
于 2021-03-09T11:06:27.840 回答