flutter session version failed - flutter

This happens when i try to use the flutter_session 0.1.1, being stuck on this issue for 3 hours
Because shared_preferences_linux >=0.0.4-nullsafety <2.0.0 depends on shared_preferences_platform_interface ^2.0.0-nullsafety and shared_preferences_linux <0.0.2+1 depends on path_provider ^1.6.11, shared_preferences_linux <0.0.2+1 or >=0.0.4-nullsafety <2.0.0-∞ requires shared_preferences_platform_interface ^2.0.0-nullsafety or path_provider ^1.6.11.
And because path_provider >=1.6.4 <2.0.0-nullsafety depends on path_provider_platform_interface ^1.0.1, shared_preferences_linux <0.0.2+1 or >=0.0.4-nullsafety <2.0.0-∞ requires shared_preferences_platform_interface ^2.0.0-nullsafety or path_provider_platform_interface ^1.0.1.
And because shared_preferences_linux >=0.0.2+1 <0.0.4-nullsafety depends on path_provider_linux ^0.0.1 which depends on path_provider_platform_interface ^1.0.1, shared_preferences_linux <2.0.0 requires shared_preferences_platform_interface ^2.0.0-nullsafety or path_provider_platform_interface ^1.0.1.
And because shared_preferences >=0.5.8 <2.0.0-nullsafety depends on shared_preferences_linux ^0.0.2 and shared_preferences >=0.5.4+8 <2.0.0-nullsafety depends on shared_preferences_platform_interface ^1.0.0, shared_preferences >=0.5.8 <2.0.0-nullsafety requires path_provider_platform_interface ^1.0.1.
And because every version of flutter_session depends on shared_preferences ^0.5.8 and path_provider_platform_interface <2.0.0-nullsafety depends on plugin_platform_interface ^1.0.1, every version of flutter_session requires plugin_platform_interface ^1.0.1.
And because file_picker 5.2.2 depends on plugin_platform_interface ^2.1.2 and no versions of file_picker match >5.2.2 <6.0.0, flutter_session is incompatible with file_picker ^5.2.2.
So, because fyp depends on both file_picker ^5.2.2 and flutter_session ^0.1.1, version solving failed.
pub get failed (1; So, because fyp depends on both file_picker ^5.2.2 and flutter_session ^0.1.1, version solving failed.)
i don't understand this error and find a lot of sources on the internet but all of them are not related to this error

Related

url_launcher_platform_interface ^1.0.5 which depends on plugin_platform_interface ^1.0.1

url_launcher_platform_interface ^1.0.5 which depends on plugin_platform_interface ^1.0.1, plugin_platform_interface ^1.0.1 is required.
So, because canteen_food depends on plugin_platform_interface ^2.0.0, version solving failed.
When you are posting a question, try to give more details. I believe you are using a package which is having a version conflict. My suggestion would be to go to url_launcher_platform_interface 's git project, and check issues or report a bug in there.

Flutter, google_maps_flutter and webview_flutter are not match

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.

how to solve this error we are facing version error init and all pakages not supported ho to solve it

The current Dart SDK version is 2.14.4.
Because test_core >=0.3.17 depends on glob ^2.0.0 and build_test 0.10.12+1 depends on test_core >=0.2.4 <0.4.0, build_test 0.10.12+1 requires glob ^2.0.0 or test_core >=0.2.4 <0.3.17.
(1) So, because build_test >=0.10.3+1 <1.3.7 depends on glob ^1.1.0 and build_test >=0.10.7 <=0.10.12 depends on test_core ^0.2.4, build_test >=0.10.7 <=0.10.12+1 requires test_core >=0.2.4 <0.3.17.
Because no versions of build_test match >0.10.12+1 <0.11.0 and build_test >=0.1.1 <=0.10.3 requires SDK version >=1.8.0 <2.0.0 or >=2.0.0-dev.32 <2.0.0, build_test >=0.1.1 <0.10.3+1 or >0.10.12+1 <0.11.0 is forbidden.
And because build_test >=0.10.3+1 <0.10.10 depends on stream_transform ^0.0.11, build_test >=0.1.1 <0.10.10-∞ or >0.10.12+1 <0.11.0 requires stream_transform ^0.0.11.
And because build_test >=0.10.7 <=0.10.12+1 requires test_core >=0.2.4 <0.3.17 (1), build_test >=0.1.1 <0.11.0 requires test_core >=0.2.4 <0.3.17 or stream_transform ^0.0.11.
And because google_maps_flutter_platform_interface >=1.0.1 <2.0.0-nullsafety depends on stream_transform ^1.2.0, if build_test >=0.1.1 <0.11.0 and google_maps_flutter_platform_interface >=1.0.1 <2.0.0-nullsafety then test_core >=0.2.4 <0.3.17.
Because google_maps_flutter >=0.5.30 <1.1.0 depends on google_maps_flutter_platform_interface ^1.0.4 and google_maps_flutter >=0.5.27 <0.5.30 depends on google_maps_flutter_platform_interface ^1.0.1, google_maps_flutter >=0.5.27 <1.1.0 requires google_maps_flutter_platform_interface ^1.0.1.
(2) Thus, if build_test >=0.1.1 <0.11.0 and google_maps_flutter >=0.5.27 <1.1.0 then test_core >=0.2.4 <0.3.17.
Because test_core >=0.3.12-nullsafety <0.3.12-nullsafety.8 requires SDK version >=2.10.0-0 <2.12.0 and test_core >=0.3.12-nullsafety.8 <0.3.12-nullsafety.16 depends on stream_channel >=2.1.0-nullsafety <2.1.0, test_core >=0.3.12-nullsafety <0.3.12-nullsafety.16 requires stream_channel >=2.1.0-nullsafety <2.1.0.
And because test_core >=0.3.12-nullsafety.16 <0.3.12-nullsafety.17 depends on test_api 0.2.19-nullsafety.7, test_core >=0.3.12-nullsafety <0.3.12-nullsafety.17 requires stream_channel >=2.1.0-nullsafety <2.1.0 or test_api 0.2.19-nullsafety.7.
And because test_core >=0.2.2 <0.2.14 depends on matcher >=0.12.5 <0.12.6 and test_core >=0.2.14 <0.3.8 depends on matcher >=0.12.6 <0.12.7, test_core >=0.2.2 <0.3.8-∞ or >=0.3.12-nullsafety <0.3.12-nullsafety.17 requires stream_channel >=2.1.0-nullsafety <2.1.0 or test_api 0.2.19-nullsafety.7 or matcher >=0.12.5 <0.12.6 or >=0.12.6 <0.12.7.
And because test_core >=0.3.8 <0.3.11 depends on test_api 0.2.17 and test_core >=0.3.11 <=0.3.11+1 depends on test_api 0.2.18, test_core >=0.2.2 <0.3.11+2 or >=0.3.12-nullsafety <0.3.12-nullsafety.17 requires stream_channel >=2.1.0-nullsafety <2.1.0 or test_api 0.2.17 or 0.2.18 or 0.2.19-nullsafety.7 or matcher >=0.12.5 <0.12.6 or >=0.12.6 <0.12.7.
And because test_core >=0.3.11+2 <0.3.12-nullsafety depends on test_api 0.2.18+1 and test_core >=0.3.12-nullsafety.17 <0.3.17 depends on test_api 0.2.19, test_core >=0.2.2 <0.3.17 requires stream_channel >=2.1.0-nullsafety <2.1.0 or test_api 0.2.17 or 0.2.18 or 0.2.18+1 or 0.2.19-nullsafety.7 or 0.2.19 or matcher >=0.12.5 <0.12.6 or >=0.12.6 <0.12.7.
And because every version of flutter_test from sdk depends on both matcher 0.12.10 and stream_channel 2.1.0, if test_core >=0.2.2 <0.3.17 and flutter_test any from sdk then test_api 0.2.17 or 0.2.18 or 0.2.18+1 or 0.2.19-nullsafety.7 or 0.2.19.
And because if build_test >=0.1.1 <0.11.0 and google_maps_flutter >=0.5.27 <1.1.0 then test_core >=0.2.4 <0.3.17 (2), if build_test >=0.1.1 <0.11.0 and google_maps_flutter >=0.5.27 <1.1.0 and flutter_test any from sdk then test_api 0.2.17 or 0.2.18 or 0.2.18+1 or 0.2.19-nullsafety.7 or 0.2.19.
And because every version of flutter_test from sdk depends on test_api 0.4.2 and barber_app depends on google_maps_flutter ^0.5.27+3, build_test >=0.1.1 <0.11.0 is incompatible with flutter_test from sdk.
So, because barber_app depends on both flutter_test any from sdk and build_test ^0.10.3, version solving failed.
pub get failed (1; So, because barber_app depends on both flutter_test any from sdk and build_test ^0.10.3, version solving failed.)

Unable to resolve dependancies after adding firebase_database

I added 'firebase_database' to pubspec.yaml and got the following error:
[components] flutter pub get
Running "flutter pub get" in components...
Because firebase_core >=1.0.0 <1.1.1 depends on firebase_core_platform_interface ^4.0.0 and firebase_core >=1.1.1 depends on firebase_core_platform_interface ^4.0.1, firebase_core >=1.0.0 requires firebase_core_platform_interface ^4.0.0.
And because firebase_database >=6.1.2 <7.0.0-dev.1 depends on firebase_core ^1.0.3, firebase_database >=6.1.2 <7.0.0-dev.1 requires firebase_core_platform_interface ^4.0.0.
And because firebase_core_platform_interface >=4.0.0 depends on plugin_platform_interface ^2.0.0 and path_provider_platform_interface <2.0.0-nullsafety depends on plugin_platform_interface ^1.0.1, firebase_database >=6.1.2 <7.0.0-dev.1 is incompatible with path_provider_platform_interface <2.0.0-nullsafety.
And because shared_preferences_windows <0.0.3-nullsafety depends on path_provider_platform_interface ^1.0.3 and shared_preferences 0.5.12+2 depends on shared_preferences_windows ^0.0.1, if firebase_database >=6.1.2 <7.0.0-dev.1 and shared_preferences 0.5.12+2 then shared_preferences_windows ^0.0.3-nullsafety.
And because shared_preferences_windows >=0.0.3-nullsafety <2.0.0 depends on shared_preferences_platform_interface ^2.0.0-nullsafety and shared_preferences 0.5.12+2 depends on shared_preferences_platform_interface ^1.0.0, firebase_database >=6.1.2 <7.0.0-dev.1 is incompatible with shared_preferences 0.5.12+2.
So, because components depends on both shared_preferences 0.5.12+2 and firebase_database ^6.1.2, version solving failed.
pub get failed (1; So, because components depends on both shared_preferences 0.5.12+2 and firebase_database ^6.1.2, version solving failed.)
exit code 1
This is my list of dependancies:
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
google_maps_flutter: ^1.0.6
http: ^0.12.0
json_serializable: ^3.3.0
bloc: ^6.1.0
flutter_bloc: ^6.1.0
equatable: ^1.2.5
graphql: ^4.0.1
graphql_flutter: ^4.0.1
flutter_google_places: ^0.2.4
google_maps_webservice: ^0.0.16
fluster: ^1.1.2
flutter_cache_manager: ^1.4.1
sliding_up_panel: ^1.0.2
image: ^2.1.14
flutter_svg: ^0.19.3
lottie: ^0.6.0
shared_preferences: '0.5.12+2'
intl: ^0.17.0
latlong: ^0.6.1
polyline: ^1.0.2
geolocator: ^5.3.1
auto_size_text_field: ^0.1.7
path_drawing: ^0.4.1
flutter_native_timezone: ^1.0.10
auto_size_text: ^2.1.0
charts_flutter: ^0.10.0
webview_flutter: ^2.0.4
firebase_database: ^6.1.2
Probably the dependency of package.
but if you still want to run it just don't specify the version,
just :
ex
firebase_core:
firebase_database:

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.