> For the complete documentation index, see [llms.txt](https://docs.appmysite.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.appmysite.com/app/download/build-failure/invalid-firebase-file.md).

# Invalid Firebase File

#### Build failure: Invalid Firebase configuration file

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

*“It seems your app build has encountered an issue. It appears that the Google Firebase Configuration file uploaded is invalid.”*

This means the Firebase configuration file uploaded in your dashboard is incorrect, corrupted, or does not match your app. This will cause the build process to fail.

#### Why this build failure happens

1. Incorrect Firebase file uploaded
   * The file belongs to a different Firebase project
   * The file does not match your app’s package name or Bundle ID
2. Wrong file type uploaded
   * Android requires the *google-services.json* file
   * iOS requires the GoogleService-Info.plist file
3. File was modified or corrupted
   * The file contents were edited manually
   * The file was renamed incorrectly

#### How to fix this build failure

1. Regenerate the Firebase configuration file
   * Log in to the [Firebase Console](https://console.firebase.google.com/)
   * Open the correct Firebase project
   * Select your registered app
   * Download a fresh configuration file

{% hint style="danger" %}
Do not edit or modify the Firebase configuration file after downloading it from Firebase.
{% endhint %}

2. Verify app details in Firebase
   * Ensure the Android package name matches exactly
   * Ensure the iOS Bundle ID matches exactly

Even a small mismatch will result in a build failure.

3. Upload the new Firebase file
   * Go to your app dashboard
   * Navigate to the screen where you uploaded the Firebase configuration file: [Login Build Settings](https://app.appmysite.com/app/login/build-settings) or [Notification build settings](https://app.appmysite.com/app/notifications/build-settings)
   * Upload the newly downloaded file
   * Save the changes
4. Rebuild your app
   * Go to the [Download dashboard](https://app.appmysite.com/app/download)
   * Click Rebuild under the relevant app card

Once the correct Firebase configuration file is uploaded, your build failure should be resolved and the download should complete successfully.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
