json_model icon indicating copy to clipboard operation
json_model copied to clipboard

依赖报错

Open VYuLinLin opened this issue 5 years ago • 1 comments

Because github_client_app depends on json_model ^0.0.2 which depends on json_serializable ^2.0.0, json_serializable ^2.0.0 is required.

VYuLinLin avatar Dec 27 '19 01:12 VYuLinLin

运行 flutter packages pub run json_model 后可以生成对应的dart文件,但是无g.dart文件, 因为版本冲突,需要删除或注释dev_dependencies中的json_model: ^0.0.2, 配置json_serializable后运行flutterpackages pub run build_runner build后正常

VYuLinLin avatar Dec 27 '19 07:12 VYuLinLin