Flutter get error after update to 1.12.13+hotfix.5 - flutter

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

Related

Flutter dependency error with google_map_location_picker

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.

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 2.0 upgrade, pub get failed with nonsense dependency behavior

The project was working like a charm that started issues after the upgrade to flutter 2.0. following are errors upon pub get.
[delivered] flutter pub get
Running "flutter pub get" in delivering...
Because every version of flutter_localizations from sdk depends on intl 0.17.0 and firebase_auth_web >=0.3.0-dev.1 <0.4.0-1.0.nullsafety.0 depends on intl ^0.16.1, flutter_localizations from sdk is incompatible with firebase_auth_web >=0.3.0-dev.1 <0.4.0-1.0.nullsafety.0.
Because firebase_auth >=0.18.4 <=0.18.4 depends on firebase_auth_web ^0.3.2+2 and firebase_auth ^0.18.4+1 depends on firebase_auth_web ^0.3.2+3, firebase_auth ^0.18.4 requires firebase_auth_web ^0.3.2+2.
Thus, flutter_localizations from SDK are incompatible with firebase_auth ^0.18.4.
So, because iDelivered depends on both flutter_localizations any from SDK and firebase_auth ^0.18.4, version solving failed.
pub get failed (1; So, because delivered depends on both flutter_localizations any from SDK and firebase_auth ^0.18.4, version solving failed.)
exit code 1
Here is my pubspec.yaml for reference:
version: 1.0.0+1
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
google_fonts: ^1.1.1
http: ^0.12.2
shared_preferences: ^0.5.12+4
firebase_core: ^0.5.3
firebase_auth: ^0.18.4
cloud_firestore: ^0.14.4
firebase_messaging: ^7.0.3
parse_server_sdk_flutter: ^2.1.0
place_picker: ^0.9.16
google_maps_flutter: ^1.0.6
animations: ^1.1.2
flutter_slidable: ^0.5.7
My suggestion is for a few week don't update your flutter version
To downgrade your flutter (Master channel):
flutter downgrade 1.22.6
Since you upgraded to Flutter 2.0, the flutter sdk is the source of the flutter_localizations. So, you have to upgrade your firebase dependencies e.g. firebase_auth, firebase_core to at least version 1.0.0.
My advice is that if the packages you are using have not been upgraded to null-safety OR they have not been recently updated, you should just stick to the 1.22.6 stable version of flutter for now.
You can try to add dependency_overrides to resolve this conflicts :
dependency_overrides:
intl: "<0.17.0"
Downgrade flutter using flutter downgrade version
my solution for this issue..
download both 2.0.2 flutter SDK and 1.22.6 flutter SDK. change flutter SDK project-wise.
In my app,
I upgrade following three pubs to latest
firebase_analytics: ^7.1.1,
firebase_core: ^1.0.1,
firebase_messaging: ^9.0.0
I downgrade google mobile ads SDK to 7.6.9 in IOS pod file, it works for me. https://github.com/FirebaseExtended/flutterfire/issues/4931

version solving failed when try get pubspec.yaml

I facing issue that show up to me that message when Trying to get packages
Running "flutter pub get" in stok_app_a...
Because no versions of in_app_purchase match >0.2.2+4 <0.3.0 and in_app_purchase 0.2.2+4 depends on json_annotation ^2.0.0, in_app_purchase ^0.2.2+4 requires json_annotation ^2.0.0.
And because every version of speech_to_text depends on json_annotation
^3.0.0, in_app_purchase ^0.2.2+4 is incompatible with speech_to_text.
So, because stok_app_a depends on both speech_to_text ^0.7.0 and
in_app_purchase ^0.2.2+4, version solving failed. pub get failed (1;
So, because stok_app_a depends on both speech_to_text ^0.7.0 and
in_app_purchase ^0.2.2+4, version solving failed.) exit code 1
I solved this issue by assignment dependency_overrides in pubspec.yaml file like that
dependency_overrides:
json_annotation: ^2.0.0
to override the json_annotation 2.0.0

Not able to use jiffy and flutter_localizations because different versions of intl

I am trying to use the Jiffy package and the flutter localization package. Problem is now, that both are using the intl package, but with different versions. When I try "Packages get" I get the following error:
Because every version of flutter_localizations from sdk depends on intl 0.15.8 and every version of jiffy depends on intl ^0.16.0, flutter_localizations from sdk is incompatible with jiffy.
Is there a way to solve it? To use both version of intl for example?
Thanks
You just need to add this to your pubspec.yaml file:
dependency_overrides:
intl: ^0.16.0
go to your pubspec.yamal and
under of global_configuration:
set intl version like this :
dependency_overrides:
intl: ^0.15.8
and change it to :
dependency_overrides:
intl: ^0.16.0