I am using Firebase package in Unity. It works perfectly fine when I run the game in the Unity editor, however, when I build the game for Android, I get this error:

> 
> Failed to read firebase options from the app's resources either make
>  sure google-services.json is included in your build or specify options
>  directly
> 
> 
> 

I already have google-services.json file in the Assets folder and I added the following block of code as suggested here (<https://firebase.google.com/docs/unity/setup>):

```
private void ConfirmGooglePlayerServicesRequirements()
    {
        Firebase.FirebaseApp.CheckAndFixDependenciesAsync().ContinueWith(task => {
            var dependencyStatus = task.Result;
            if (dependencyStatus == Firebase.DependencyStatus.Available)
            {
                // Create and hold a reference to your FirebaseApp,
                // where app is a Firebase.FirebaseApp property of your application class.
                app = Firebase.FirebaseApp.DefaultInstance;

                // Set a flag here to indicate whether Firebase is ready to use by your app.
                firebaseIsReadyToBeUsed = true;
            }
            else
            {
                Debug.LogError(System.String.Format(
                  "Could not resolve all Firebase dependencies: {0}", dependencyStatus));
                // Firebase Unity SDK is not safe to use here.
            }
        });
    }

```

Thanks!