Skip to content

[intl 0.20.2 Error]: intl is pinned to version 0.20.2 by flutter_localizations from the flutter SDK #155

@deepak-kumar-swain

Description

@deepak-kumar-swain

Is there an existing issue for this?

  • I have searched the existing issues

Package/Plugin version

11.1.2

Platforms

  • Android
  • iOS
  • Linux
  • MacOS
  • Web
  • Windows

Flutter doctor

Flutter doctor
Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.32.3, on macOS 15.5 24F74 darwin-arm64, locale en-IN) [✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 16.4) [✓] Chrome - develop for the web [✓] Android Studio (version 2024.3) [✓] VS Code (version 1.100.3) [✓] Connected device (4 available) ! Error: Browsing on the local area network for Deepak’s iPAD. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac. The device must be opted into Developer Mode to connect wirelessly. (code -27) [✓] Network resources • No issues found!

Minimal code example

Code sample

Current Behavior

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

Because no versions of form_builder_validators match >11.1.2 <12.0.0 and form_builder_validators 11.1.2 depends on flutter_localizations from sdk, form_builder_validators ^11.1.2 requires flutter_localizations from sdk.
And because every version of flutter_localizations from sdk depends on intl 0.20.2, form_builder_validators ^11.1.2 requires intl 0.20.2.
So, because outlets depends on both form_builder_validators ^11.1.2 and intl ^0.19.0, version solving failed.

You can try the following suggestion to make the pubspec resolve:

  • Try upgrading your constraint on intl: flutter pub add intl:^0.20.2
    Failed to update packages.
    Process finished with exit code 1

Expected Behavior

form_builder_validators depends on latest intl 0.20.2

Steps To Reproduce


Aditional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions