简体   繁体   English

在 flutter 上运行构建运行程序时,出现以下错误

[英]When running build runner on flutter I get the following error

When I run当我跑

flutter packages pub run build_runner build --delete-conflicting-outputs

I get the following error.我收到以下错误。

    Failed to precompile build_runner:build_runner:
../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/analyzer-0.40.6/lib/error/error.dart:7:8: Error: Error when reading '../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/_fe_analyzer_shared-12.0.0/lib/src/base/errors.dart': No such file or directory
import 'package:_fe_analyzer_shared/src/base/errors.dart';

Run the following commands:运行以下命令:

flutter pub cache repair
flutter clean
flutter pub upgrade

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我在 flutter 中构建项目时出现以下错误 - I get the following error when i build my project in flutter `flutter pub get` 导致构建运行器错误 - `flutter pub get` results in build runner error 运行时出错 flutter pub run build_runner build --delete-conflicting-outputs - Error when running flutter pub run build_runner build --delete-conflicting-outputs 当我尝试将应用程序与 firebase 连接时,我无法在 VS 代码中构建应用程序。 以下是我开始运行它时遇到的错误 - I cannot build the application in VS code, when i am trying to connect the app with firebase. Following is the error i get when i start running it Flutter build runner ElementVisitor 获取路径 - Flutter build runner ElementVisitor get path 我正在尝试在 flutter 中制作一个简单的应用程序,该应用程序从 API 中获取数据。 但是,当我尝试运行代码时,出现以下错误 - I'm trying to make a simple app in flutter that fetches data from an API. However when I try running the code I get the following error 我正在关注 Flutter 入门教程,但是在运行 get package 时出现错误 - I'm following getting started with Flutter tutorials,but while running get package it gets me error 如何修复 Flutter build_runner 错误:无法预编译 build_runner:build_runner: - How to fix Flutter build_runner error: Failed to precompile build_runner:build_runner: 如何让 GraphQL Flutter 应用程序运行并出现以下错误? - How can i get a GraphQL Flutter app running that has the following error? 运行“flutter build apk --release”时出错 - Get error when I run 'flutter build apk --release'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM