我正在尝试使用built_value序列化程序获取JSON数据,但是在yaml文件中设置了build_value包后出现了类似以下错误:
因为built_value_generator> = 5.5.3取决于分析器^ 0.32.1和 sdk中flutter_test的每个版本都取决于分析器 0.31.2-alpha.2,built_value_generator> = 5.5.3与sdk中的flutter_test不兼容。因此,因为tornado_blog_flutter取决于 都是flutter_test来自sdk的任何内容,并且built_value_generator ^ 5.5.3, 版本解析失败。发布失败
如何解决此错误?
我的Yaml文件:
name: flutter_layout
description: A new Flutter application.
dependencies:
flutter:
sdk: flutter
built_collection: '>=2.0.0 <4.0.0'
built_value: ^5.5.3
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2
dev_dependencies:
flutter_test:
sdk: flutter
json_serializable: ^0.5.0
build_runner: ^0.9.0
built_value_generator: ^5.5.3