Troubleshooting Google Play Service Account Errors and Permissions Problems
Here is a list of known common errors when setting up Google Service Accounts and uploading to the Secrets Manager.
Google Play Android Developer API has not been used in project 400719706081 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/androidpublisher.googleapis.com/overview?project=400719706081 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
Solution:
Enable the Google Play Android Developer API for the Google Cloud Project: https://developers.google.com/android-publisher/getting_started#enable

Failed to list subscription products: { "error": { "code": 404, "message": "Package not found: com.kaldorgroup.example.", "errors": [ { "message": "Package not found: com.kaldorgroup.example.", "domain": "global", "reason": "notFound" } ], "status": "NOT_FOUND" } }
Failed to list subscription products: { "error": { "code": 403, "message": "The caller does not have permission", "errors": [ { "message": "The caller does not have permission", "domain": "global", "reason": "forbidden" } ], "status": "PERMISSION_DENIED" } }
Solution:
Ensure the Service Account email address is granted permissions to the correct Google Play Console and that the service account email has been given access to the correct app and the required (above) permissions are granted: https://developers.google.com/android-publisher/getting_started#service-account
If all of the steps have been completed successfully and this is a brand new app, you will need to ensure that an initial build containing the app's Package Name has been uploaded to the Google Play Console. Please contact support if you require this.
Failed to fetch Firebase projects: Invalid response. Status code: 200, Response: '{}'
Solution:
In Firebase you can navigate to Project Settings > Service Accounts and there are provided links to manage the Service Accounts and the permissions for this Project. Ensure that the Google Cloud Project has the Service Account Email listed in its IAM Allow permissions, and the permission Firebase Viewer is granted.