Skip to content

[bug]: [SOLVED] flutterfire configure - Failed to fetch your Firebase projects  #390

Open
@freemansonu

Description

@freemansonu

Is there an existing issue for this?

  • I have searched the existing issues.

CLI Version

1.2.0

Firebase Tools version

14.2.0

Flutter Doctor Output

flutter doctor -v
[√] Flutter (Channel stable, 3.29.3, on Microsoft Windows [Version 10.0.19045.5608], locale en-US) [1,272ms]
• Flutter version 3.29.3 on channel stable at C:\Users\freeman\dev\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision ea121f8859 (7 days ago), 2025-04-11 19:10:07 +0000
• Engine revision cf56914b32
• Dart version 3.7.2
• DevTools version 2.42.3

[√] Windows Version (10 Enterprise 64-bit, 22H2, 2009) [2.7s]

[√] Android toolchain - develop for Android devices (Android SDK version 35.0.1) [4.9s]
• Android SDK at C:\Users\freeman\AppData\Local\Android\sdk
• Platform android-35, build-tools 35.0.1
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: flutter config --jdk-dir="path/to/jdk".
• Java version OpenJDK Runtime Environment (build 21.0.5+-13047016-b750.29)
• All Android licenses accepted.

[√] Chrome - develop for the web [585ms]
• Chrome at C:\Users\freeman\AppData\Local\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.13.6) [584ms]
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.13.35931.197
• Windows 10 SDK version 10.0.22621.0

[√] Android Studio (version 2024.3) [17ms]
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.5+-13047016-b750.29)

[√] VS Code (version 1.99.3) [16ms]
• VS Code at C:\Users\freeman\AppData\Local\Programs\Microsoft VS Code
• Flutter extension can be installed from:
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (3 available) [2.5s]
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.5608]
• Chrome (web) • chrome • web-javascript • Google Chrome 135.0.7049.96
• Edge (web) • edge • web-javascript • Microsoft Edge 135.0.3179.73

[√] Network resources [425ms]
• All expected network resources are available.

• No issues found!

Description

firebase projects:list
√ Preparing the list of your Firebase projects
┌──────────────────────┬─────────────────┬────────────────┬──────────────────────┐
│ Project Display Name │ Project ID │ Project Number │ Resource Location ID │
├──────────────────────┼─────────────────┼────────────────┼──────────────────────┤
│ mydatabase │ mydatabase-39a9b │ 710160214773 │ [Not specified] │
└──────────────────────┴─────────────────┴────────────────┴──────────────────────┘

1 project(s) total.

flutterfire configure
i Found 0 Firebase projects.
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 https://firebase.google.com/docs/cli#install_the_firebase_cli for how to install it.
✔ Would you like to create a new Firebase project? · no
FirebaseProjectRequiredException: A Firebase project id must be specified, either via the --project option or a .firebaserc file.

flutterfire configure --project=mydatabase-39a9b
i Found 0 Firebase projects.
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 https://firebase.google.com/docs/cli#install_the_firebase_cli for how to install it.
✔ Would you like to create a new Firebase project? · no
FirebaseProjectRequiredException: A Firebase project id must be specified, either via the --project option or a .firebaserc file.

Steps to reproduce

Just run the command 'flutterfire configure'

Expected behavior

i Found 1 Firebase projects.

Screenshots

Image

Additional context and comments

  1. I tried creating new flutter and firebase projects but didn't help.
  2. I am running 'flutterfire configure' command from Flutter project directory using FlutterFire CLI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs AttentionOP created or responded to issue and it needs attention.bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions