1. Connect Firebase
Create a Firebase project
Already have a Firebase project? Skip to Get the service account JSON.- Go to console.firebase.google.com and sign in with your Google account.
- Click Create a project (it may say Add project).
- Enter a name, such as your app or company name. Firebase generates a project ID you can edit.
- Continue past any AI assistance screen, then choose whether to enable Google Analytics. Studio doesn’t need it.
- Click Create project, wait for setup to finish, then click Continue.
Get the service account JSON
- Click the gear icon next to Project Overview, then Project settings.
- Open the Service accounts tab.
- Make sure Firebase Admin SDK is selected, then click Generate new private key.
- Confirm with Generate key. A JSON file downloads. Google keeps no copy, so store it securely.
Add it to Studio
- In the Android card, find Service account (admin SDK) JSON and click Upload service account JSON.
- Click Save & verify.
This service account lets Studio register your Android apps and relay Firebase Cloud Messaging v1 push notifications.
2. Set your package names
Package names are set on the Blockli project tab, in the Android section. You need a release package name and a test package name.Use an app that already exists in Firebase
Open Release package name or Test package name. Studio lists the Android apps in your Firebase project. Type to search, then pick one.Register new apps
- Open either Android field and choose Register new….
- In the side panel, enter an App nickname and your Release package name (for example
com.yourcompany.yourapp). - Studio suggests the Test package name by adding
.testto the release name. You can edit it. - Review the preview, then click Create in Firebase.
google-services.json, and fills in both fields.
Click Save at the bottom of the tab when you’re done.
google-services.json (optional)
Studio creates and saves google-services.json automatically when you register apps, so you normally don’t need to upload one.
If you already have an existing Firebase app and want to use its google-services.json, follow the steps below.
Getting google-services.json for an existing Firebase app
- Open the Firebase console and pick your project.
- Click the gear icon next to Project Overview, then Project settings.
- On the General tab, scroll to Your apps and select your Android app — the one with your package name.
- Click
google-services.jsonto download it. - In Studio, go to Store Setup → Credentials → Android and upload it under google-services.json. That field appears after you’ve connected the service account.
3. Google Play service account (optional)
Only needed for automatic Play Store uploads. If you upload builds to Play by hand, skip this.Create the app in Play Console yourself before your first upload. Google doesn’t allow apps to be created through the API.
Create the service account
- Open Google Cloud Console and sign in with the Google account that owns your Play Console, or one with access to the project.
- Pick or create a project. Then go to APIs & Services → Library, search for Google Play Android Developer API, and click Enable.
- Go to IAM & Admin → Service Accounts and click + Create service account.
- Enter a name such as
blockli-play-publisher. Add a description if you like. Click Create and continue. - Skip the next two steps (“Grant this service account access to the project” and “Grant users access to this service account”) and click Done. Play permissions are set in Play Console, not here.
- Copy the new account’s email. It looks like
blockli-play-publisher@your-project.iam.gserviceaccount.com.
Download the JSON key
- In IAM & Admin → Service Accounts, click the account you created.
- Open the Keys tab and click Add key → Create new key.
- Choose JSON and click Create. The file downloads. Google keeps no copy, so store it securely.
If Create new key is greyed out, your organization blocks service account key creation (the
iam.disableServiceAccountKeyCreation policy). Ask your Google Workspace admin to allow it.Give it access in Play Console
- Open Play Console and go to Users and permissions → Invite new users.
- Paste the service account’s email.
- Grant access to your app, or account-level permissions. Uploading builds needs release rights, or Admin.
- Click Invite user. Service accounts have no inbox, so there’s nothing to accept.
Add it to Studio
- In the Android card, find Google Play service account (.json) and click Upload Play .json.
- Click Save.

