[英]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.