繁体   English   中英

安装时出错 Flutter 项目

[英]Error while install exists Flutter project

dart run build_runner build时出错

日志: https://pastebin.com/k0gpWuun详细日志: https://pastebin.com/BNgVh6pV

pubspec.yaml:

environment:
  sdk: ">=2.12.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter


  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^1.0.2
  webview_flutter: ^2.0.9
  flutter_inappwebview: ^5.3.2
  url_launcher: ^6.0.8
  flutter_svg: ^0.22.0
  uni_links: ^0.5.1
  flutter_webview_plugin: ^0.4.0
  flutter_share: ^2.0.0
  package_info_plus: ^1.0.6
  dio: ^4.0.0
  sign_in_with_apple: ^3.0.0
  google_sign_in: ^5.1.0
  json_serializable: ^4.1.4
  build: ^2.1.0
  get_it: ^7.2.0

dev_dependencies:
  flutter_test:
    sdk: flutter
  build_runner:

flutter clean 和其他 cmd 对我不起作用重新安装 Flutter,迁移到 Linux(呵呵),重新安装 sdk

请将您的pubspec.yaml文件更新为

dependencies

  analyzer: ^5.4.0 <- add this

dev_dependencies

 build_runner: ^2.3.3 <- add into dev_dependecies

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM