Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Version resolving failed with: json_annotation ^4.0.0 #20

Open
zohaib-rentalmoose opened this issue Apr 13, 2021 · 4 comments
Open

Version resolving failed with: json_annotation ^4.0.0 #20

zohaib-rentalmoose opened this issue Apr 13, 2021 · 4 comments

Comments

@zohaib-rentalmoose
Copy link

Dear developer,
i'm trying to use this package with riverpod, but because your plugin is depends on json_annotation ^3.0.0
and riverpod is using json_annotation ^4.0.0, I'm getting this error

Because flutter_riverpod ^0.13.1 depends on riverpod ^0.13.1 and no versions of riverpod match >0.13.1 <0.14.0, flutter_riverpod ^0.13.1 requires riverpod 0.13.1.

And because riverpod 0.13.1 depends on freezed_annotation ^0.14.0, flutter_riverpod ^0.13.1 requires freezed_annotation ^0.14.0.

And because freezed_annotation >=0.14.0 depends on json_annotation ^4.0.0 and every version of flutter_pusher_client depends on json_annotation ^3.0.0, flutter_riverpod ^0.13.1 is incompatible with flutter_pusher_client.

So, because movitronic depends on both flutter_pusher_client ^0.3.1 and flutter_riverpod ^0.13.1, version solving failed.
pub get failed (1; So, because movitronic depends on both flutter_pusher_client ^0.3.1 and flutter_riverpod ^0.13.1, version solving failed.)
exit code 1

@fixer112
Copy link

fixer112 commented Jun 2, 2021

pls am having this issue too... pls we need a fix

@YassineChe
Copy link

pls am having this issue too... pls we need a fix

Hello,
I solved this problem by overriding this package
Add these lines in your pubspec.yaml

dependency_overrides:
  json_annotation: ^4.0.0

Its work for me,
Best Regards.

@YassineChe
Copy link

YassineChe commented Jun 7, 2021

Same solution works for flutter_pusher: ^1.0.2 package too!
Good luck!

@nicolasvahidzein
Copy link

This was a lifesaver but can we update the package pretty please?
Thank you so much for all your hard work by the way.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants