Visitar URL original
Version solving failed for `intl: 0.19.0` with `flutter_localizations` · Issue #139861 · flutter/flutter · GitHub
The Wayback Machine - https://web.archive.org/web/20240517081807/https://github.com/flutter/flutter/issues/139861
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.19.0 with flutter_localizations #139861

Closed
NeKoFu opened this issue Dec 9, 2023 · 15 comments · Fixed by dart-lang/tools#248 or #145170
Closed

Version solving failed for intl: 0.19.0 with flutter_localizations #139861

NeKoFu opened this issue Dec 9, 2023 · 15 comments · Fixed by dart-lang/tools#248 or #145170
Assignees
Labels
a: internationalization Supporting other languages or locales. (aka i18n) customer: crowd Affects or could affect many people, though not necessarily a specific customer. found in release: 3.16 Found to occur in 3.16 found in release: 3.18 Found to occur in 3.18 has reproducible steps The issue has been confirmed reproducible and is ready to work on P2 Important issues not at the top of the work list r: fixed Issue is closed as already fixed in a newer version team-tool Owned by Flutter Tool team tool Affects the "flutter" command-line tool. See also t: labels. triaged-tool Triaged by Flutter Tool team

Comments

@NeKoFu
Copy link

NeKoFu commented Dec 9, 2023

Hi,
Currently, the flutter_localizations package depends on intl ^0.18.1
Would it be possible to update this dependency to intl ^0.19.0

Have a nice day

@danysz

This comment was marked as duplicate.

@huycozy huycozy added the in triage Presently being triaged by the triage team label Dec 11, 2023
@huycozy
Copy link
Member

huycozy commented Dec 11, 2023 •

Thanks for the report. This is a known issue at dart-lang/i18n#759 but it seems this should be fixed on Flutter side (a stale issue dart-lang/i18n#458).

Reproduced this issue on the latest Flutter master channel. The complete output log:

Note: intl is pinned to version 0.18.1 by flutter_localizations from the flutter SDK.
See https://dart.dev/go/sdk-version-pinning for details.


Because every version of flutter_localizations from sdk depends on intl 0.18.1 and reproduce_issues depends on intl ^0.19.0, flutter_localizations from sdk is forbidden.
So, because reproduce_issues depends on flutter_localizations from sdk, 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.18.1
exit code 1
flutter doctor -v (stable and master)
[✓] Flutter (Channel stable, 3.16.3, on macOS 14.1 23B74 darwin-x64, locale en-VN)
    • Flutter version 3.16.3 on channel stable at /Users/huynq/Documents/GitHub/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b0366e0a3f (23 hours ago), 2023-12-05 19:46:39 -0800
    • Engine revision 54a7145303
    • Dart version 3.2.3
    • DevTools version 2.28.4

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A507
    • CocoaPods version 1.13.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (version unknown)
    • Android Studio at /Applications/Android Studio Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to determine Android Studio version.
    • Java version OpenJDK Runtime Environment (build 17.0.8+0-17.0.8b1000.22-10799086)

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio Giraffe Patch 3.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = /Applications/Android Studio.app/
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.84.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.78.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 14.1 23B74 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 119.0.6045.199

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.
[!] Flutter (Channel master, 3.18.0-7.0.pre.58, on macOS 14.1 23B74 darwin-x64, locale en-VN)
    • Flutter version 3.18.0-7.0.pre.58 on channel master at /Users/huynq/Documents/GitHub/flutter_master
    ! Warning: `flutter` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c0a481e31d (4 hours ago), 2023-12-10 17:46:24 -0500
    • Engine revision bc0222b64c
    • Dart version 3.3.0 (build 3.3.0-214.0.dev)
    • DevTools version 2.30.0
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A507
    • CocoaPods version 1.13.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (version unknown)
    • Android Studio at /Applications/Android Studio Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to determine Android Studio version.
    • Java version OpenJDK Runtime Environment (build 17.0.8+0-17.0.8b1000.22-10799086)

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio Giraffe Patch 3.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = /Applications/Android Studio.app/
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.84.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.78.0

[✓] Connected device (3 available)
    • RMX2001 (mobile) • EUYTFEUSQSRGDA6D • android-arm64  • Android 11 (API 30)
    • macOS (desktop)  • macos            • darwin-x64     • macOS 14.1 23B74 darwin-x64
    • Chrome (web)     • chrome           • web-javascript • Google Chrome 120.0.6099.71

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.

@huycozy huycozy changed the title flutter_localizations dependency update Version solving failed for intl: 0.19.0 with flutter_localizations Dec 11, 2023
@huycozy huycozy added tool Affects the "flutter" command-line tool. See also t: labels. has reproducible steps The issue has been confirmed reproducible and is ready to work on team-tool Owned by Flutter Tool team found in release: 3.16 Found to occur in 3.16 found in release: 3.18 Found to occur in 3.18 a: internationalization Supporting other languages or locales. (aka i18n) and removed in triage Presently being triaged by the triage team labels Dec 11, 2023
@miguelangelflores1993

This comment was marked as duplicate.

@FaFre
Copy link

FaFre commented Jan 28, 2024

It would be really great if this is getting updated, since the usage of intl is pretty widespread and blocks other packages from getting upgraded.

@c-seeger

This comment was marked as duplicate.

@loic-sharma
Copy link
Member

Looks like this got closed by accident, reopening

@loic-sharma loic-sharma reopened this Mar 12, 2024
@loic-sharma
Copy link
Member

This is blocked until package:unified_analytics version 5.8.6 is released. /cc @eliasyishak

@FaFre
Copy link

FaFre commented Mar 13, 2024

Mhm, doesn't it make more sense to actually reference those package in internal packages from the sdk directly they are shipped with (https://dart.dev/tools/pub/dependencies#sdk). Having internal packages depend on other version they are actually shipped with sounds like that's breaking a lot of stuff, no?

@eliasyishak
Copy link
Contributor

Just released 5.8.6 for unified analytics

@christopherfujino
Copy link
Member

assigning this to @eliasyishak, can you close once intl v0.19.0 has rolled to flutter/flutter?

This was referenced Mar 14, 2024
@loic-sharma
Copy link
Member

loic-sharma commented Mar 14, 2024 •

The automated roll failed, I'll close this with a manual roll: #145170

auto-submit bot pushed a commit that referenced this issue Mar 15, 2024
The automated roll failed as a test needs to be updated: #145167

Fixes: #139861
@huycozy huycozy added the r: fixed Issue is closed as already fixed in a newer version label Mar 18, 2024
@vuzzer
Copy link

vuzzer commented Mar 21, 2024

Hi,
flutter_localizations depend on intl 0.18.0
would be possible to update to intl 0.19.0.
I have many packages in my project that depend on intl 0.19.0 ! please 🙏

Have a nice day!

@loic-sharma
Copy link
Member

@vuzzer Hello, this should be addressed in the master channel. You can try this using:

flutter channel master
flutter upgrade

The stable channel will be fixed on the next stable release.

@vuzzer
Copy link

vuzzer commented Mar 23, 2024

@loic-sharma hello, thanks ! it works

Copy link

github-actions bot commented Apr 6, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a: internationalization Supporting other languages or locales. (aka i18n) customer: crowd Affects or could affect many people, though not necessarily a specific customer. found in release: 3.16 Found to occur in 3.16 found in release: 3.18 Found to occur in 3.18 has reproducible steps The issue has been confirmed reproducible and is ready to work on P2 Important issues not at the top of the work list r: fixed Issue is closed as already fixed in a newer version team-tool Owned by Flutter Tool team tool Affects the "flutter" command-line tool. See also t: labels. triaged-tool Triaged by Flutter Tool team
Projects
None yet