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
Related
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
I am getting the following error on version solving with google_map_location_picker:
Because google_map_location_picker 3.3.3 depends on intl >=0.16.0
<=0.16.1 and every version of flutter_localizations from sdk depends
on intl 0.17.0, google_map_location_picker 3.3.3 is incompatible with
flutter_localizations from sdk. So, because food_delivery_app depends
on both flutter_localizations any from sdk and
google_map_location_picker 3.3.3, version solving failed. pub get
failed (1; So, because food_delivery_app depends on both
flutter_localizations any from sdk and google_map_location_picker
3.3.3, version solving failed.)
In the pubspec.yaml file set the version of google_map_location_picker to any (google_map_location_picker: any) then go to the pubspec.lock file and check the version of google_map_location_picker which solves the error.
I'm new to flutter and I've been having dependency issues on flutter Keep having this same error
Because every version of integration_test from sdk depends on vm_service 6.0.1-nullsafety.1 and dwds ^7.1.0 depends on vm_service 5.5.0, integration_test from sdk is incompatible with dwds ^7.1.0.
So, because brandapp depends on both dwds ^7.1.0 and integration_test any from sdk, version solving failed.
pub get failed (1; So, because brandapp depends on both dwds ^7.1.0 and integration_test any from sdk, version solving failed.)```
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
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