简体   繁体   English

FlutterAppRequiredException:当前目录似乎不是 Flutter 应用程序项目

[英]FlutterAppRequiredException: The current directory does not appear to be a Flutter application project

i have install firebase tools for implement it in flutter, i followed all the instruction but when i run "flutterfire configure" this error appears (FlutterAppRequiredException: The current directory does not appear to be a Flutter application project.)我已经安装了 firebase 工具以在 flutter 中实现它,我按照所有说明操作,但是当我运行“flutterfire configure”时出现此错误(FlutterAppRequiredException:当前目录似乎不是 ZC047B10EEE7632CC68Z1 应用程序项目。)

You need to first redirect to your application path in CLI您需要首先在 CLI 中重定向到您的应用程序路径

cd app_name

Try again flutterfire configure command after that.之后再试一次flutterfire配置命令。

Thanks谢谢

You must make sure that in your pubspec.yaml the following lines are on the start of dependencies place, ex:您必须确保在您的 pubspec.yaml 中,以下几行位于依赖项的开头,例如:

dependencies:
  flutter:
    sdk: flutter

Make sure your pubspec.yaml file is well defined and correct.确保您的 pubspec.yaml 文件定义明确且正确。 In my case, I had erased after dependencies就我而言,我在依赖项后删除了

  flutter:
    sdk: flutter
  ...

The correct format may be in flutter 3.3.0 Flutter and the pubspec file正确的格式可能在 flutter 3.3.0 Flutter 和 pubspec 文件中

name: myapp
version: 1.0.0+1
publish_to: none
description: A new Flutter project.
environment: 
  sdk: '>=2.18.0 <3.0.0'

dependencies: 
  cupertino_icons: 
 
  flutter:
    sdk: flutter

dev_dependencies:
  flutter_test:
    sdk: flutter

flutter:
  assets:
    - assets/
 
  uses-material-design: true

暂无
暂无

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

相关问题 GitHub Azure Webapp 的操作错误:指定项目或解决方案文件。 当前工作目录不包含项目或解决方案文件 - GitHub Action error for Azure Webapp: Specify a project or solution file. The current working directory does not contain a project or solution file Firebase:此文件不存在且没有索引。在当前目录中找到html或在根目录中找到404.html - Firebase: This file does not exist and there was no index.html found in the current directory or 404.html in the root directory 有没有办法根据当前用户UID从Firebase加载图像到flutter项目 - Is there any way to load image from Firebase to flutter project according to current user UID Json 未为当前项目启用 - Json not enabled for current project 我的 flutter 应用程序 android build.gradle 文件没有默认配置和应用程序 ID - My flutter application android build.gradle file does not have Default config and application ID Flutter项目选择云数据库 - Choosing cloud database for Flutter project Firebase Auth 登录在将 flutter 项目发布到 Play 商店后不起作用 - Firebase Auth Sign-in does not work after releasing flutter project to Play Store Flutter 发布请求标头不会出现在 Google Cloud 上 Function - Flutter post request headers do not appear on Google Cloud Function 在 Flutter 中获取当前用户 uid 为 Firebase 的数据 - Fetch Firebase data with current user uid in Flutter Firebase项目目录怎么改 - How to change Firebase project directory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM