json_model icon indicating copy to clipboard operation
json_model copied to clipboard

Get dependencies报错

Open bluecapricorn opened this issue 5 years ago • 3 comments

引入了最新版本的json_model和json_serializable,进行get dependencies出错: image Because json_model 0.0.2 depends on json_serializable ^2.0.0 and no versions of json_model match >0.0.2 <0.1.0, json_model ^0.0.2 requires json_serializable ^2.0.0. So, because web_socket depends on both json_serializable ^3.2.2 and json_model ^0.0.2, version solving failed.

bluecapricorn avatar Aug 30 '19 06:08 bluecapricorn

Please update.

icatalud avatar Sep 11 '19 22:09 icatalud

Please update.

In my project, "json_model" and "json_serializable" all the latest version. But it still failed after I do packages get. image

bluecapricorn avatar Sep 12 '19 02:09 bluecapricorn

Please update.

In my project, "json_model" and "json_serializable" all the latest version. But it still failed after I do packages get. image

Use "dependency_overrides" in pubspec.yaml can fix it. like this: dependency_overrides: json_serializable: ^3.2.2 build_runner_core: ^4.0.0 json_annotation: ">=3.0.0 <3.1.0"

zhaojiewen avatar Oct 17 '19 11:10 zhaojiewen