# Invalid Firebase configuration

### Build failure: Invalid Firebase configuration

If your app build is failing, your build is not working, or your download is not completing and you see the message:

*“Your last build failed. Details entered are either incorrect or invalid.”*

This usually indicates an issue with your Firebase configuration settings. Incorrect, incomplete, or mismatched Firebase details can cause both Android and iOS build failures.

#### Why this build failure happens

1. Incorrect Firebase project settings
   * The wrong Firebase project is connected
   * Required services are not enabled
2. Invalid or mismatched keys and IDs
   * Package name or Bundle ID does not match Firebase
   * Any key, ID or credentials are incorrect
3. Social login misconfiguration (if enabled)
   * Google Sign-In is not configured correctly
   * OAuth credentials are missing or incorrect

#### How to fix this build failure

1. Verify your Firebase project
   * Log in to the [Firebase Console](https://console.firebase.google.com/)
   * Open the Project settings connected to your app
   * Ensure the correct Android package name or iOS Bundle ID is added

{% hint style="warning" %}
The package name (Android) or Bundle ID (iOS) in Firebase must exactly match the one configured in your app Download dashboard.
{% endhint %}

2. Check Firebase configuration settings
   * Confirm that the app is properly registered in Firebase
   * Verify that all required services are enabled
   * Review any credentials entered in your dashboard

Even a small mismatch or missing value can cause the build to fail.

3. Review social login setup (if enabled)
   * Ensure Google Sign-In is enabled in Firebase
   * Confirm that SHA keys (for Android) are correctly added
   * Verify OAuth credentials
4. Rebuild your app
   * Go to the Download section
   * Click Rebuild under the relevant app card

Once all Firebase settings are corrected, your build failure should be resolved and the download should complete successfully.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.appmysite.com/app/download/build-failure/invalid-firebase-configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
