hurshi / dio-http-cache

http cache lib for Flutter dio like RxCache
Apache License 2.0
274 stars 223 forks source link

Version solving failed with json_serializable ^4.1.0 #90

Open Kasre96 opened 3 years ago

Kasre96 commented 3 years ago

I'm getting this error while migrating to null safety:

Because dio_http_cache 0.2.11 depends on json_serializable ^3.0.0 and no versions of dio_http_cache match >0.2.11 <0.3.0, dio_http_cache ^0.2.11 requires json_serializable ^3.0.0. So, because <my_project_name> depends on both json_serializable ^4.1.0 and dio_http_cache ^0.2.11, version solving failed.

What's the update on migration?

biswa1751 commented 3 years ago

This solves the error
dio_http_cache: git: url: https://github.com/hurshi/dio-http-cache.git ref: 9aa5cf72fe2cbfe7368143a022c243ee883911b0

Kasre96 commented 3 years ago

Thanks, @biswa1751. Let me check it out.

zystudios commented 2 years ago

Because app depends on dio_http_cache ^0.3.0 which depends on json_serializable ^4.1.4, json_serializable ^4.1.4 is required. So, because app depends on json_serializable ^6.1.4, version solving failed. pub get failed (1; So, because app depends on json_serializable ^6.1.4, version solving failed.) @biswa1751