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.
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'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".
i have webview_flutter: ^2.8.0 in my pubspec.yaml then i want to add google_maps_flutter: ^1.2.0 package but it doesn't match, can it be fix? or what other package to replace google_maps_flutter: ^1.2.0 because this is my company project and webview_flutter: ^2.8.0 is already in the pubspec.yaml from the beginning and i cannot remove it of course.
it shows something like this in output
Running "flutter pub get" in one-smile...
Because no versions of webview_flutter_platform_interface match >1.8.0 <1.8.1 and webview_flutter_platform_interface >=1.8.1 depends on plugin_platform_interface ^2.1.0, webview_flutter_platform_interface >1.8.0 requires plugin_platform_interface ^2.1.0.
And because webview_flutter_platform_interface 1.8.0 depends on plugin_platform_interface ^2.0.0, webview_flutter_platform_interface >=1.8.0 requires plugin_platform_interface ^2.0.0.
Because google_maps_flutter >=1.2.0 <2.0.0-nullsafety depends on google_maps_flutter_platform_interface ^1.2.0 which depends on plugin_platform_interface ^1.0.1, google_maps_flutter >=1.2.0 <2.0.0-nullsafety requires plugin_platform_interface ^1.0.1.
Thus, google_maps_flutter >=1.2.0 <2.0.0-nullsafety is incompatible with webview_flutter_platform_interface >=1.8.0.
And because webview_flutter 2.8.0 depends on webview_flutter_platform_interface ^1.8.0 and no versions of webview_flutter match >2.8.0 <3.0.0, google_maps_flutter >=1.2.0 <2.0.0-nullsafety is incompatible with webview_flutter ^2.8.0.
So, because onesmile depends on both webview_flutter ^2.8.0 and google_maps_flutter ^1.2.0, version solving failed.
pub get failed (1; So, because onesmile depends on both webview_flutter ^2.8.0 and google_maps_flutter ^1.2.0, version solving failed.)
exit code 1
and in debug console when i run it
Because no versions of webview_flutter_platform_interface match >1.8.0 <1.8.1 and webview_flutter_platform_interface >=1.8.1 depends on plugin_platform_interface ^2.1.0, webview_flutter_platform_interface >1.8.0 requires plugin_platform_interface ^2.1.0.
And because webview_flutter_platform_interface 1.8.0 depends on plugin_platform_interface ^2.0.0, webview_flutter_platform_interface >=1.8.0 requires plugin_platform_interface ^2.0.0.
Because google_maps_flutter >=1.2.0 <2.0.0-nullsafety depends on google_maps_flutter_platform_interface ^1.2.0 which depends on plugin_platform_interface ^1.0.1, google_maps_flutter >=1.2.0 <2.0.0-nullsafety requires plugin_platform_interface ^1.0.1.
Thus, google_maps_flutter >=1.2.0 <2.0.0-nullsafety is incompatible with webview_flutter_platform_interface >=1.8.0.
And because webview_flutter 2.8.0 depends on webview_flutter_platform_interface ^1.8.0 and no versions of webview_flutter match >2.8.0 <3.0.0, google_maps_flutter >=1.2.0 <2.0.0-nullsafety is incompatible with webview_flutter ^2.8.0.
So, because onesmile depends on both webview_flutter ^2.8.0 and google_maps_flutter ^1.2.0, version solving failed.
pub get failed (1; So, because onesmile depends on both webview_flutter ^2.8.0 and google_maps_flutter ^1.2.0, version solving failed.)
as you can see on pub.dev webview_flutter: ^2.8.0 is nearly two months old uses latest api to interact with flutter.
where your google_maps_flutter: ^1.2.0 is quite old so update it to any of below versions and it should work.
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
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