Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version solving failed for intl: 0.20.0 #914

Open
mosuem opened this issue Nov 13, 2024 · 1 comment
Open

Version solving failed for intl: 0.20.0 #914

mosuem opened this issue Nov 13, 2024 · 1 comment

Comments

@mosuem
Copy link
Member

mosuem commented Nov 13, 2024

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
@tristanjclarke
Copy link

Any updates on this 🙏

I'm also experiencing this and require 0.20.0 so that I can use await initializeDateFormatting('he', null) in my app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants