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
Related
Gettings these errors on using pub get
Because every version of flutter_driver from sdk depends on webdriver 3.0.0 which depends on archive ^3.0.0, every version of flutter_driver from sdk requires archive ^3.0.0.
(1) So, because image >=2.1.14 <3.0.0-nullsafety.0 depends on archive ^2.0.0, flutter_driver from sdk is incompatible with image >=2.1.14 <3.0.0-nullsafety.0.
Because flutter_cache_manager >=2.1.2 <3.0.0-nullsafety.0 depends on image >=2.1.18 <4.0.0 and flutter_cache_manager >=2.1.0 <2.1.2 depends on image ^2.1.18, flutter_cache_manager >=2.1.0 <3.0.0-nullsafety.0 requires image >=2.1.18 <4.0.0.
And because cached_network_image 2.5.1 depends on flutter_cache_manager ^2.1.0 and flutter_launcher_icons 0.8.1 depends on image ^2.1.1, if cached_network_image 2.5.1 and flutter_launcher_icons 0.8.1 then image ^2.1.18.
And because flutter_driver from sdk is incompatible with image >=2.1.14 <3.0.0-nullsafety.0 (1), one of flutter_driver any from sdk or cached_network_image 2.5.1 or flutter_launcher_icons 0.8.1 must be false.
And because fstore depends on flutter_driver any from sdk, cached_network_image 2.5.1 is incompatible with flutter_launcher_icons 0.8.1.
So, because fstore depends on both flutter_launcher_icons 0.8.1 and cached_network_image 2.5.1, version solving failed.
pub get failed (1; So, because fstore depends on both flutter_launcher_icons 0.8.1 and cached_network_image 2.5.1, version solving failed.)
Process finished with exit code 1
Try to upgrade all the packages used in the project.
[![Because every version of flutter_test from sdk depends on async 2.6.1 and fstore depends on async 2.5.0, flutter_test from sdk is forbidden.
So, because fstore depends on flutter_test any from sdk, version solving failed.
Running "flutter pub get" in testupdate...
pub get failed (1; So, because fstore depends on flutter_test any from sdk, version solving failed.)
]1]1
Code was running on master channel but when I changed channel to dev after that i'm Getting this error on each channel
When I upgrade this Async I get more errors
This is because you are having a flutter package where its dependency needs a higher version than you need. This might be due to your dependencies have updated.
Use
flutter_launcher_icons: ^0.9.0
cached_network_image: ^3.0.0
Now both supports Null safety. Please use updated packages from https://pub.dev/packages
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.
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