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 !