最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

flutter - Problems generating firebase_options.dart for initialization - Stack Overflow

programmeradmin0浏览0评论

I'm using Firebase in my flutter project and until last year , So far, I only needed to initialize it with a param-free statement like await Firebase.initializeApp();

Since last update it's necessary to provide an option as a param , so I'm told by the compiler, and for that I have to "generate a file named firebase_options.dart".

I read the doc very carefully and as far as I understand I followed it step by step so far:

;platform=android

I installed the Firebase CLI, I'm logged in my google account successfully, I added firebase core, I activated flutterfire_cli ... but now I stuck. I'm asked to execute the following statement :

flutterfire configure

When I do it in Firebase CLI console, it prompted :

FlutterAppRequiredException: The current directory does not appear to be a Flutter application project.

So far, so right ... When I do it in my flutter project folder, I get the following exception :

Failed to fetch your Firebase projects. 
Fetch failed with this: FirebaseCommandException: 
An error occured on the Firebase CLI when attempting to run a command.
COMMAND: firebase --version 
ERROR: The FlutterFire CLI currently requires the official Firebase CLI to also be installed, 
see  for how to install it.
? Would you like to create a new Firebase project? (y/n) › yes

It looks like a deadlock for me ... what can be my next step to get out of that loop ?

Any help would be appreciated ! Thanks !

发布评论

评论列表(0)

  1. 暂无评论