Flutter intl version conflict - flutter

I get this error:
Because my_rents depends on flutter_localizations any from sdk which
depends on intl 0.17.0-nullsafety.2, intl 0.17.0-nullsafety.2 is
required. So, because my_rents depends on intl ^0.16.0, version
solving failed. pub get failed (1; So, because my_rents depends on
intl ^0.16.0, version solving failed.)
my_rents is the name of my app, it's not an specific package
If instead of
intl: ^0.16.1
I have
intl: 0.17.0-nullsafety.2
The error I get is
Because firebase_auth >=0.18.0+1 <0.18.1 depends on firebase_auth_web
^0.3.0+1 and firebase_auth >=0.18.1 <=0.18.1+1 depends on
firebase_auth_web ^0.3.1, firebase_auth >=0.18.0+1 <=0.18.1+1 requires
firebase_auth_web ^0.3.0+1. And because firebase_auth >=0.18.1+2
<0.18.2 depends on firebase_auth_web ^0.3.1+1, firebase_auth
=0.18.0+1 <0.18.2 requires firebase_auth_web ^0.3.0+1. And because firebase_auth >=0.18.2 <0.18.3 depends on firebase_auth_web ^0.3.1+2
and firebase_auth >=0.18.3+1 <0.18.4 depends on firebase_auth_web
^0.3.2+1, firebase_auth >=0.18.0+1 <0.18.3-∞ or >=0.18.3+1 <0.18.4-∞
requires firebase_auth_web ^0.3.0+1. And because firebase_auth
=0.18.3 <=0.18.3 depends on firebase_auth_web ^0.3.2 and firebase_auth >=0.18.4 <=0.18.4 depends on firebase_auth_web ^0.3.2+2,
firebase_auth >=0.18.0+1 <=0.18.4 requires firebase_auth_web ^0.3.0+1.
And because firebase_auth ^0.18.4+1 depends on firebase_auth_web
^0.3.2+3 which depends on intl ^0.16.1, firebase_auth ^0.18.0+1
requires intl ^0.16.1. So, because my_rents depends on both
firebase_auth ^0.18.0+1 and intl 0.17.0-nullsafety.2, version solving
failed. pub get failed (1; So, because my_rents depends on both
firebase_auth ^0.18.0+1 and intl 0.17.0-nullsafety.2, version solving
failed.)

The dart and flutter teams are transitioning to null-safety feature. It is still in beta (that is why you get this error just with the beta channel). Not every package are already upgraded to null-sefety. You can fix this issue either by:
asking the developer of the package to upgrade to null safety
use a version of flutter which has not null-safety enabled
use a beta version of the package with null-sefty enabled
Check also this issue
Original answer: Pubspec.yaml resolving version failed in master channel but works in stable channel in Flutter
For now easiest solution is:
flutter channel stable
flutter upgrade

You can resolve the issue by settings the 'any' to resolve issue
https://stackoverflow.com/a/65971167/14950155
Intl: any

Related

Which verson of firebase auth lib requires plugin interface of 1.0.2?

Running "flutter pub get" in textrecognizer...
Because firebase_auth >=4.2.8 depends on firebase_auth_platform_interface ^6.11.10 which depends on plugin_platform_interface ^2.1.3, firebase_auth >=4.2.8 requires plugin_platform_interface ^2.1.3.
And because image_picker >=0.6.7 <0.7.0-nullsafety depends on image_picker_platform_interface ^1.1.0 which depends on plugin_platform_interface ^1.0.2, firebase_auth >=4.2.8 is incompatible with image_picker >=0.6.7 <0.7.0-nullsafety.
So, because textrecognizer depends on both image_picker ^0.6.7+6 and firebase_auth ^4.2.8, version solving failed.
pub get failed (1; So, because textrecognizer depends on both image_picker ^0.6.7+6 and firebase_auth ^4.2.8, version solving failed.)
I need the 0.6.7+6 version of image_picker library so I cannot change that. Maybe any suggestions to change firebase_auth version to make it compatible with the version of image_picker?
I tried minimizing the version of firebase_Auth and it still didn't work

problem adding flutter_dialogflow dependency into flutter

I'm trying to make a chatbot using dialogflow in flutter and currently facing this error trying to add dialogflow dependency and i do not know how to solve it. can anyone help?
The current Dart SDK version is 2.16.2.
Because firebase_auth >=3.3.15 depends on firebase_auth_web ^3.3.13 and no versions of firebase_auth_web match >3.3.13 <4.0.0, firebase_auth >=3.3.15 requires firebase_auth_web 3.3.13.
(1) So, because firebase_auth_web 3.3.13 depends on http_parser ^4.0.0 and http >=0.11.3+17 <0.13.0-nullsafety.0 depends on http_parser >=0.0.1 <4.0.0, firebase_auth >=3.3.15 is incompatible with http >=0.11.3+17 <0.13.0-nullsafety.0. Because flutter_dialogflow <0.1.0 requires SDK version >=1.8.0 <2.0.0 and flutter_dialogflow >=0.1.0 <0.1.3 depends on http ^0.11.3+16, flutter_dialogflow <0.1.3 requires http ^0.11.3+16.
And because http >=0.2.8+2 <0.11.3+17 requires SDK version <2.0.0 and flutter_dialogflow >=0.1.3 depends on http ^0.12.0+2, every version of flutter_dialogflow requires http ^0.11.3+17 or ^0.12.0+2.
And because firebase_auth >=3.3.15 is incompatible with http >=0.11.3+17 <0.13.0-nullsafety.0 (1), firebase_auth >=3.3.15 is incompatible with flutter_dialogflow.
So, because knowyoursim_app depends on both firebase_auth ^3.3.15 and flutter_dialogflow any, version solving failed.
Running "flutter pub get" in knowyoursim_app...
pub get failed (1; So, because knowyoursim_app depends on both firebase_auth ^3.3.15 and flutter_dialogflow any, version solving failed.)
this is my dependencies
environment:
sdk: ">=2.16.2 <3.0.0"
dependencies:
flutter:
sdk: flutter
style icons.
cupertino_icons: ^1.0.2
firebase_core: ^1.15.0
firebase_auth: ^3.3.15
test: ^1.19.5
bloc: ^8.0.3
flutter_bloc: ^8.0.1
equatable: ^2.0.3
flutter_launcher_icons: ^0.9.2
search_app_bar_page: ^2.1.2
#dialog_flowtter: ^0.3.3
bubble:
intl:
flutter_dialogflow:
Hi try those steps and it might work :
1 - type '$flutter clean' on console.
2 - then run '$flutter pub get' .
3 - then '$flutter pub outdated' .
4 - after that run '$flutter pub upgrade --major-versions' that should force it to upgrade your packages .
Make sure you are installing the latest dialogflow dependencies..
dialogflow_flutter: ^1.0.0
or try using this sdk: ">=2.17.0-182.2.beta <3.0.0".

issues with yaml packages for firestorm

Do you know, what is the problem here and how to solve?
[kuechenrechner] flutter pub get
Running "flutter pub get" in kuechenrechner...
Because firebase_auth >=1.0.1 depends on firebase_auth_web ^1.0.1 which depends on http_parser ^4.0.0, firebase_auth >=1.0.1 requires http_parser ^4.0.0.
And because http >=0.11.3+17 <0.13.0-nullsafety.0 depends on http_parser >=0.0.1 <4.0.0, firebase_auth >=1.0.1 is incompatible with http >=0.11.3+17 <0.13.0-nullsafety.0.
Because vin_decoder 0.1.3 depends on http ^0.12.2 and vin_decoder >=0.1.2 <0.1.3 depends on http ^0.12.1, vin_decoder >=0.1.2 <=0.1.3 requires http ^0.12.1.
Thus, firebase_auth >=1.0.1 is incompatible with vin_decoder >=0.1.2 <=0.1.3.
And because no version of vin_decoder match >0.1.3 <0.2.0, firebase_auth >=1.0.1 is incompatible with vin_decoder ^0.1.2.
And because validators 2.0.1 depends on vin_decoder ^0.1.2 and no versions of validators match >2.0.1 <3.0.0, firebase_auth >=1.0.1 is incompatible with validators ^2.0.1.
And because flutter_form_builder 5.0.0 depends on validators ^2.0.1 and no versions of flutter_form_builder match >5.0.0 <6.0.0, firebase_auth >=1.0.1 is incompatible with flutter_form_builder ^5.0.0.
So, because kuechenrechner depends on both flutter_form_builder ^5.0.0 and firebase_auth ^1.0.1, version solving failed.
pub get failed (1; So, because kuechenrechner depends on both flutter_form_builder ^5.0.0 and firebase_auth ^1.0.1, version solving failed.)
exit code 1
It seems like your Firebase packages depend on many other packages. You need to update all dependencies and packages along with Firebase.

Flutter version issues when update to Flutter 2.0

All my classes are getting errors after updating.
I tried flutter clean as well. When ever i run flutter pub get command i get the following error.
Because no versions of intl_utils match >1.8.0 <1.9.0 and intl_utils ^1.9.0 depends on intl_translation 0.17.10+1, intl_utils >1.8.0 <2.0.0 requires intl_translation 0.17.10+1.
And because intl_utils 1.8.0 depends on intl_translation 0.17.10 which depends on intl >=0.15.3 <0.17.0, intl_utils ^1.8.0 requires intl >=0.15.3 <0.17.0 or intl_translation 0.17.10.
And because intl_translation 0.17.10 depends on intl >=0.15.3 <0.17.0 and every version of flutter_localizations from sdk depends on intl 0.17.0, intl_utils ^1.8.0 is incompatible with flutter_localizations from sdk.
So, because markets depends on both flutter_localizations any from sdk and intl_utils ^1.8.0, version solving failed.
pub get failed (1; So, because markets depends on both flutter_localizations any from sdk and intl_utils ^1.8.0, version solving failed.)
Yes, try to downgrade your flutter version. I had the same issue
flutter downgrade 1.22.6

Flutter get error after update to 1.12.13+hotfix.5

I'm getting this error after I upgrade flutter.
Because no versions of datetime_picker_formfield match >0.4.3 <0.5.0 and datetime_picker_formfield 0.4.3 depends on intl ^0.15.8, datetime_picker_formfield ^0.4.3 requires intl ^0.15.8.
And because every version of flutter_localizations from sdk depends on intl 0.16.0, datetime_picker_formfield ^0.4.3 is incompatible with flutter_localizations from sdk.
So, because APP_NAME depends on both flutter_localizations any from sdk and datetime_picker_formfield ^0.4.3, version solving failed.
Please help.
Thanks.
Try adding these to your pubspec.yaml file:
dependency_overrides:
intl: ^0.16.0