skip to content

Uploading an Android App Bundle to Firebase App Distribution fails with 'This project is not linked to a Google Play account'; what must be in place, and what changes for testers?

level: seniorimportance: should knowfreq 20%

answer

  1. bundles need Google Play
  2. same package name in both
  3. published, not draft
  4. re-signed with a test certificate
  5. internal app sharing switch

basics

~20 s

AAB releases go through Google Play's internal app sharing, so the Firebase project must be linked to a Play account holding the same package, published on a track. Play re-signs the APKs with a test certificate, and testers turn on internal app sharing.

solid answer

~40 s

App Distribution hands an **AAB** to Google Play's **internal app sharing**, which generates device APKs, so the upload checks the Play integration first. It needs: the Firebase project linked to the Play developer account (Play **Owner** or **Admin**, Firebase **Owner** or **Firebase Admin**), a Play app with the **same package name**, and that app **published** on a track (Internal testing, not *Draft* internal testing, or Closed, Open, Production). The CLI names the gap: not linked, no app with that package, not published, or internal app sharing terms not accepted. For testers, Play re-signs the APKs with a **test certificate**, so its SHA fingerprints must be registered with Google Sign-In, Maps and similar providers, and each tester turns on **Internal app sharing** in the Play Store settings once.

go deeper

for a junior

Remember that App Distribution can send APKs on its own, but app bundles go through Google Play and need the Firebase project linked to a Play account.

for a middle

Explain the requirements: matching package names, a published Play app, the right roles, and the tester's one-time internal app sharing switch.

for a senior

Diagnose from the CLI's integration state, and anticipate the test certificate breaking Google Sign-In or Maps until its fingerprints are registered.

for a principal

Decide whether the team tests bundles at all before Play, given that the AAB path depends on a published Play app and a separate test signing identity.

## Why a bundle needs Google Play An **Android App Bundle** (`.aab`) is not installable by itself: something has to cut it into the APKs a given device needs and sign them. Firebase App Distribution does not do that itself; it passes the bundle to Google Play's **internal app sharing** service, which generates and signs the APKs and delivers them through the Play Store app. That is why an AAB upload depends on a **Firebase-to-Play link** that an APK upload never touches. ## What has to be in place Before App Distribution will accept a bundle: - **Permissions.** The person linking holds **Owner** or **Admin** access in the Google Play developer account, and **Owner** or **Firebase Admin** in the Firebase project. - **Two registrations, one package.** There is a Firebase Android app and a Google Play app, registered with the **same package name**. - **A published Play app.** The Play app is set up and distributed on a track, and its review is complete. In the Play Console's App status column that means *Internal testing* (not *Draft internal testing*), *Closed testing*, *Open testing* or *Production*. - **Linked.** The Firebase project is linked to that Play developer account. If an app did not meet these criteria when you first tried, you can retry the link once it does. ## Reading the CLI's error Before uploading an AAB, the Firebase CLI asks App Distribution for the app's integration state and stops on anything but a working link: | Integration state | What the CLI says | Fix | |---|---|---| | `PLAY_ACCOUNT_NOT_LINKED` | This project is not linked to a Google Play account. | Link the Firebase project to the Play developer account | | `NO_APP_WITH_GIVEN_BUNDLE_ID_IN_PLAY_ACCOUNT` | App with matching package name does not exist in Google Play. | Create the Play app with the identical package name | | `APP_NOT_PUBLISHED` | This app is not published in the Google Play console. | Publish a release to a track; a draft does not count | | `PLAY_IAS_TERMS_NOT_ACCEPTED` | You must accept the Play Internal App Sharing (IAS) terms to upload AABs. | Accept Play's internal app sharing terms | A 404 instead means App Distribution was never onboarded for this app: press **Get started** on its App Distribution page first. With the Gradle plugin the same requirements apply; you set `artifactType = "AAB"` and run `bundleRelease` before the upload task. ## What changes for testers and for your app 1. **A different signing certificate.** After the first AAB upload, App Distribution generates a **test certificate**, and Google Play re-signs the APKs it generates from every AAB release with it, not with your upload key or your production app signing key. The CLI prints its MD5, SHA-1 and SHA-256 fingerprints, and the console shows it. Any API that checks the app's signature, such as Google Sign-In or the Maps SDK, can fail in the test build until those fingerprints are registered with the provider. 2. **A one-time switch on each device.** Testers open the Play Store app, go to **Settings**, tap the Play Store version in the About section seven times, and turn on **Internal app sharing**. The download screen repeats these steps. 3. **Installs come from the Play Store.** The tester taps Download in App Tester and Google Play completes the install; the in-app new-build alert also sends AAB updates to Google Play rather than downloading an APK. 4. **Install conflicts.** "Can't install app" usually means another variant of the app on the device declares the same custom permission or `ContentProvider` authority; the tester has to remove the conflicting app. ## What the link does not do - AABs uploaded to App Distribution **do not appear** in the Play developer account: not in App Bundle Explorer, not in internal app sharing's list, and not on any track. Nothing reaches users. - **Unlinking** Firebase from Play stops new AAB uploads, but existing releases stay available to testers and previously exported data remains in both products. The diagnostic order follows the table: link, package name, published status, terms. Once the upload works, the first question from a tester whose Google sign-in fails is almost always the test certificate.

  • Testers can install your App Distribution AAB build, but Google Sign-In fails in it while the APK build works; why?
    AAB releases are re-signed by Google Play with a test certificate that App Distribution generates on the first bundle upload, so the installed app no longer carries the signature registered for sign-in. Copy the test certificate's SHA-1 and SHA-256 fingerprints from the CLI output or the Firebase console and register them with the provider, alongside the debug and release fingerprints.
  • Do AAB releases uploaded to Firebase App Distribution show up anywhere in Play Console?
    No. They do not appear in the Play developer account at all: not in App Bundle Explorer, not in internal app sharing's list, and not on a testing track. The link only lets App Distribution hand the bundle to Play's internal app sharing for delivery; promoting a build to users still means uploading it to Play yourself.

  • App Distribution puts AAB uploads on Play's internal testing track.
  • AAB test builds keep the upload key's signature, so API keys still match.
  • A draft internal testing release is enough to link the Play app.
  • The Play app may use a different package name if linked manually.
  • Testers install AAB releases by sideloading the bundle file.