gpt4 book ai didi

flutter - 运行内置值生成器时出错

转载 作者:行者123 更新时间:2023-12-04 00:16:31 25 4
gpt4 key购买 nike

我在尝试使用内置值生成器时遇到错误

这是我得到的错误。

[INFO] Running build...
[INFO] Generating SDK summary.
[SEVERE] built value generator:built value on lib/json_parsing.dart:
Bad state: Unexpected diagnostics:
C:\src\flutter\bin\cacheldart-sdk\lib\core\uri.dart:3259:39 - Expected an identifier.
[SEVERE] built_value_generator:built_value on lib/json_parsing.dart:

Bad state: Unexpected diagnostics:
C:\src\Flutter\bin\cache\dart-sdk\lib\core uri.dart:3259:39 - Expected an identifier.

[SEVERE] built_value_generator:built_value on lib/json_parsing.dart:

Bad state: Unexpected diagnostics:
C:\src\flutter\bin\cache\dart-sdk\lib\coreluri.dart:3259:39 - Expected an identifier.

我正在使用的运行构建值生成器的类

import 'package:built_value/built_value.dart';

part 'src/json_parsing.g.dart';

abstract class Article implements Built<Article, ArticleBuilder> {
Article._();
factory Article([void Function(ArticleBuilder) updates]) = _$Article;
}

最佳答案

正如@Mohammad 在评论中提到的,来自 this issue ,只需将其添加到 pubspec.yaml:

dependency_overrides:
analyzer: '0.39.14'

请注意,这是 dependenciesdev_dependencies 的兄弟。

关于flutter - 运行内置值生成器时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63413361/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com