这是indexloc提供的服务,不要输入任何密码
Skip to content

Version solving failed for intl: 0.20.0 #914

@mosuem

Description

@mosuem

This is a pre-emptive issue thread, as we recently published a new version of package:intl. This results in the following error message, as long as Flutter has not updated their pinned version.

mosuem@mosuem:~/my_app$ flutter pub get
Resolving dependencies... (1.0s)
Note: intl is pinned to version 0.19.0 by flutter_localizations from the flutter SDK.
See https://dart.dev/go/sdk-version-pinning for details.


Because my_app depends on flutter_localizations from sdk which depends on intl 0.19.0, intl 0.19.0 is required.
So, because my_app depends on intl ^0.20.0, version solving failed.


You can try the following suggestion to make the pubspec resolve:
* Consider downgrading your constraint on intl: flutter pub add intl:^0.19.0

See https://github.com/dart-lang/sdk/blob/main/docs/Flutter-Pinned-Packages.md for more information. The easiest solution is add this to your pubspec.yaml:

dependency_overrides:
  intl: 0.20.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions