-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flutterfire configure, FormatException: Unexpected character (at character 1) #55
Comments
Same here! Here's my Flutter doctor -v output [✓] Flutter (Channel stable, 2.10.4, on macOS 11.4 20F71 darwin-x64, locale en-GB) [✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0) [!] Xcode - develop for iOS and macOS (Xcode 12.5.1) [✓] Android Studio (version 4.0) [✓] Android Studio (version 4.0) [✓] VS Code (version 1.66.1) [✓] Connected device (2 available) [✓] HTTP Host Availability |
Same issue here, is there any workaround available? |
What helped me in the end was to logout of firebase and login again, you can do that with |
Thanks |
Hi, using the |
I have the same issue using Firebase CLI (on Windows). However, when I do this from a regular terminal (actually, my IDEA's terminal, but I guess a command prompt would be the same), it just worked...
Hope this is helpful for someone else... |
I have same isssue when I'm trying to use
But I've got installed Firebase CLI, via WSL. Here's "Flutter doctor -v output [√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1) [√] Chrome - develop for the web [√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.10.2) [√] Android Studio (version 2021.2) [√] Connected device (4 available) [√] HTTP Host Availability |
Way to solve this one is rename the firebase_windows_xxx.exe to firebase.exe |
@robertflesch Thank's Robert, but I've already tried this, not helping. Today I've unistall firbease-tools, node.js and wsl to try install this time throught nvm, but I'm still getting error after
|
I was running into the same issue yesterday, and never got it solved,
however I did manage to get my project working.
I found that if I created a new project inside the firebase_cli, I could
get my app running with the default configuration. And the
firebase_options.dart was not needed.
using firebase projects:create,
firebase projects:create
? Please specify a unique project id (warning: cannot be modified
afterward) [6-30 characters]:
myProject
? What would you like to call your project? (defaults to your project ID)
myProjectName
√ Creating Google Cloud Platform project
√ Adding Firebase resources to Google Cloud Platform project
=== Your Firebase project is ready! ===
Project information:
- Project ID: myProject
- Project Name: myProjectName
Firebase console is available at
https://console.firebase.google.com/project/ myProject/overview
Hope this helps.
… Message ID: ***@***.***>
|
I've had this issue for a while, just solved it for me. The key was to not run "flutterfire configure" in the VSCode Terminal, but in the flutterfireCLI Terminal. Normally when executing "flutterfire configure" in the flutterfireCLI it tells you "FlutterAppRequiredException: The current directory does not appear to be a Flutter application project.", that is because you have to navigate to the correct directory first. In the FlutterfireCLI Terminal, use "cd" to find your current directory. Then navigate to the directory of your Flutter Project ( The same you should be in currently, in VSCode. From there type "flutterfire configure". This workaround worked for me, hope it helps. |
I tried this but it did not work for me, because the After going through the Hope this helps somebody. |
So just come across this issue myself, and wanted to clarify a few things written previously (or propose yet another way that seems to have worked for me). Personally, I think the instructions given for the firebase CLI (+ Flutter integration) by the official documentation could be much clearer. [This is using the standalone windows firebase-tools-instant-win.exe]
It seems that flutterfire needs to be run inside the FlutterCLI rather than Windows terminal, and is expecting to find a Hopefully this helps someone out there. |
same here |
i solved it by : |
Thank you. You saved my day |
Consegui usando o PowerShell ao inves de outros terminais |
Thanks man, I've struggled with this for more than a week now. Only your solution worked |
This solution might be helpful to some here. #27 (comment) TL;DR
|
its been two days , none of these worked for me . i have tried installing with both CLI and npm method. if i run the "flutterfire configure" from the firebase.exe it gives me this error = however "firebase projects:list " is working fine . When i try with running the "flutterfire configure" from the terminal in the same folder instead of the firebase.exe , it gives me the same "unhandeled exception" error which the OP is facing. i have added path of everything in the environment variables. Edit : (found a solution) the issue was , i was using the LTS version of node , so after updating it using NVM and reinstalling everything fixed the issue for me. 🙂. |
Thanks for saving my day :D |
It was fixed when I downloaded nodejs from its own site and installed it again. |
You don't know how much time I spent trying to solve this problem! thanks a lot man. |
thank you you save my time afte 24hours research :D . your method is work fine for me. |
I have the same issue which is, `$ dart pub global run flutterfire_cli:flutterfire configure ^ #0 _ChunkedJsonParser.fail (dart:convert-patch/convert_patch.dart:1383:5) I have tried all the above solution none of them worked for me. I have been trying for more than 1 week nothing happens. Please Kindly rectify this issue. PLEASE!!! |
Thank you so much for your help. I am really appreciate it! |
Thank you! I tried everything else you can find in other tickets or StackOverflow but this was exactly the missing piece. |
2024, same issue here |
The text was updated successfully, but these errors were encountered: