about intl versions
Closed this issue · 1 comments
I use intl and flutter_flavourizr simultaneously in my application as follows.
intl: ^0.18.1(or ^0.19.0)
flutter_flavorizr: ^2.2.3
flutter pub get requires intl:0.18.1 as shown below
:flutter pub get --no-example
Resolving dependencies...
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 my_app depends on flutter_localizations from sdk which depends on intl 0.18.1, intl 0.18.1 is required.
So, because my_app depends on intl ^0.19.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.18.1
exit code 1
flutter build ipa requires intl:0.19.0 as follows
:flutter build ipa and :flutter build appbundle --flavor production
Resolving dependencies...
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.18.1, 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.19.0
flutter clean is performed.
It started happening after I changed the Flutter version to 3.22.1.
You can also run flutter build ipa by setting intl:0.19.0.
Why are there different versions required?
:flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.1, on macOS 14.5 23F79 darwin-arm64, locale ja-JP)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.89.1)
[✓] Connected device (5 available)
[✓] Network resources
I changed Flutter version to 3.22.2.
flutter build ipa and flutter pub get both work fine.
I'm sorry for troubling you.
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.2, on macOS 14.5 23F79 darwin-arm64, locale ja-JP)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.90.1)
[✓] Connected device (4 available)
[✓] Network resources