Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Error with different versions of the same package Flutter

How to fix this error?

Because syncfusion_flutter_charts >=20.1.55 depends on syncfusion_flutter_core ^20.1.55 and syncfusion_flutter_pdfviewer 19.4.56-beta depends on syncfusion_flutter_core ^19.4.56, syncfusion_flutter_charts >=20.1.55 is incompatible with syncfusion_flutter_pdfviewer 19.4.56-beta.
And because no versions of syncfusion_flutter_pdfviewer match >19.4.56-beta <20.0.0, syncfusion_flutter_charts >=20.1.55 is incompatible with syncfusion_flutter_pdfviewer ^19.4.56-beta.
So, because admin_m32 depends on both syncfusion_flutter_pdfviewer ^19.4.56-beta and syncfusion_flutter_charts ^20.1.55, version solving failed.
pub get failed (1; So, because admin_m32 depends on both syncfusion_flutter_pdfviewer ^19.4.56-beta and syncfusion_flutter_charts ^20.1.55, version solving failed.)

How to specify different versions for the same package?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Best way is update your syncfusion_flutter_pdfviewer to 20.1.55-beta, but if you still need to use current version, you can override in pubspec.yaml file :

dependency_overrides:
  syncfusion_flutter_core: ^20.1.55
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading