颤振构建不生成文件

Flutter build not generating files

我是 Flutter 的新手,尝试设置一个应用程序,但最后一步总是失败:

flutter packages pub run build_runner build

我收到以下错误:

我的 pubspec.yaml 文件包含这些依赖项:

name: flutter__app
description: A new Flutter application.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev

version: 1.0.0+1

environment:
  sdk: ">=2.10.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  cupertino_icons: ^1.0.0
  built_value: ^7.1.0
  built_collection: ^4.3.2
  dio: ^3.0.10
  intl: ^0.17.0-nullsafety.2
  get: ^3.17.1
  flutter_localizations:
    sdk: flutter
  async: ^2.4.2
  get_storage: ^1.3.2

dev_dependencies:
  flutter_test:
    sdk: flutter
  build_runner: ^1.0.0
  built_value_generator: ^7.1.0

flutter:
  generate: true
  uses-material-design: true

#see https://github.com/google/built_value.dart/issues/923
dependency_overrides:
  analyzer: 0.41.1

构建文件没有正确生成,我遇到了很多错误。我试图通过更改以下版本来解决它:build_runner、built_value_generator、分析器但没有成功。

我还尝试删除 \Local\Pub\Cache 目录中的缓存,因为我认为缓存可能已损坏。

欢迎任何意见。

尝试使用 --delete-conflicting-outputs 标记。在重试之前,您还应该执行 flutter cleanflutter pub get