[英]Target of URI doesn't exist: 'firebase_options.dart'. Try creating the file referenced by the URI, or Try using a URI for a file that does exist
please how can i solve this problem Target of URI doesn't exist: 'firebase_options.dart'.请问我该如何解决这个问题 URI 的目标不存在:'firebase_options.dart'。 Try creating the file referenced by the URI, or Try using a URI for a file that does exist尝试创建由 URI 引用的文件,或尝试对确实存在的文件使用 URI
Usually, the firebase_options.dart
file is generated through flutterfire configure
command.通常, firebase_options.dart
文件是通过flutterfire configure
命令生成的。
Double check that you generate the file properly with the Flutterfire CLI and that you import it with the right path in your main.dart
(or the file that require it)仔细检查您是否使用 Flutterfire CLI 正确生成了文件,并在您的main.dart
(或需要它的文件)中使用正确的路径导入它
run flutter pub add firebase_core
this is probably because you haven't installed firecore in your project yet运行flutter pub add firebase_core
这可能是因为你还没有在你的项目中安装 firecore
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.