# Error code: 1039

The error in your compilation can be caused by the lack of OAuth licenses generation in Firebase. This can be due to a recent project change or configuration in Firebase. To fix it, we recommend watching the following video tutorial and step by step guide that will guide you through the solution process.

{% embed url="<https://www.loom.com/share/dde3f6db97a04c91a912df32cc227ef1>" %}

Step 1: Whether you have the property mentioned in step 5 or not, go to the API credentials section in the Google Cloud Console for the project.

<figure><img src="/files/MYB9bpUMnV1sKXAWuxfp" alt=""><figcaption></figcaption></figure>

Step 2: In the OAuth 2.0 client ID section, check that you have the corresponding OAuth for your build ID (use the Control + F function for a more efficient search).

<figure><img src="/files/MohvWXz8vVhlWd1AcEsQ" alt=""><figcaption></figcaption></figure>

Step 3: If you already have it and the problem persists, please contact the Apphive support. If you do not have it, it is likely still assigned in your previous project. In that case, you will need to go to the Google Cloud Console of the previous project where you had your applications.

<figure><img src="/files/8hbrQBSY5rF5F65dKkLs" alt=""><figcaption></figcaption></figure>

Step 4: Once you have located the credential corresponding to your build ID in the previous project, you will need to delete it. Make sure it is the correct one corresponding to your build ID. Remember that deleting credentials or other files is your responsibility.

<figure><img src="/files/vNyxJMUuyNWcMtIGN0JP" alt=""><figcaption></figcaption></figure>

Step 5: After deleting the credential, go to Firebase and access your previous project. If you still have the application within the project, make sure it does not have assigned SHA-1. If it still has, proceed to remove it. Remember that deleting credentials or other files is your responsibility.

<figure><img src="/files/7WlUygJZEIu885jjvH4u" alt=""><figcaption></figcaption></figure>

Step 6: Rebuild your app, place the SHA-1 in the corresponding application within your new project in Firebase, and this should generate the licenses correctly, giving you a successful build.


---

# 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.apphive.io/global-functions-1/compilation-errors/error-code-1039.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.
