I've tried to follow step by step all documentations, and I've miserably failed. I'm creating my very first app with Flutter and Android Studio on Windows .
Error:
i Found 0 Firebase projects. Selecting project five-six-seven-and-eight.
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 https://firebase.google.com/docs/cli#install_the_firebase_cli for how to install it.
I've downloaded:
Flutterfire configure
--> fails!
I've then tried via node.js.
Flutterfire configure
still fails:Fetching available Firebase projects... Unhandled exception: FormatException: Unexpected character (at character 1) # ^
I've tried logout and login again. So then, I have no idea how to let my Flutter app in Android studio see/link/match my Firebase project so I can try my first auth.
To login with firebase run npm: Run npm install -g firebase-tools
Add FlutterFire to Windows Environment Variables
C:\Users\user-name\AppData\Local\Pub\Cache\bin
I had a similar situation a day ago.
After a lot of headaches, npm install -g firebase-tools
works for me. Windows binary version has some bugs, I guess.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.