Publishing to Google Play

Android Development with Compose: Production & Publishing

Course 6 ยท Chapter 7 ยท Going Live

This is the chapter most likely to be out of date by the time you read it: Play policy and console screens change often. It describes the route and what to prepare. It does not publish anything, create an account or touch a console, and nothing here was seen on a real Play Console. Treat the Play Console Help pages as the source of truth on the day.

What was checked, and how: read this first
Checked on 2026-11-22 (three searches, summaries only; the first search returned mostly third-party blogs, which are marked as such): Official pages (as summarised by the search): Signing: Android needs every APK signed; app bundles are signed with an upload key before upload and Play App Signing handles the rest; in Android Studio, Build > Generate Signed Bundle / APK creates the keystore and key; validity should be at least 25 years; the upload key and the app signing key should differ; a lost upload key can be reset through the Play Console; the Google-held signing key's fingerprint is what API providers need; once an app is on an open track or production its signing key is fixed. New personal accounts: the Play Console Help page says accounts created after 13 November 2023 must run a closed test with at least 12 testers opted in continuously for 14 days before applying for production access; a tester who leaves and rejoins restarts the count; until it is met, Production and Pre-registration stay disabled. (A community post said the figure was once 20 and was lowered to 12; the official page's 12 is the one used.) Releases: closed testing and creating a track are under Test and release > Testing; creating a release needs the "Release apps to testing tracks" permission. Target API: the Play Help page on target API levels, as summarised, says new apps and updates must target Android 16 (API level 36) or higher from 31 August 2026. Blogs also mentioned an extension to 1 November 2026, which has already passed, so check what applies now. Third-party blogs only, not confirmed against an official page: listing size limits (title 30 characters, short description 80, full 4,000, icon 512x512, feature graphic 1024x500), the Data safety form being required for every app, content rating and a privacy policy being required, an app bundle being required for new apps since 2021, a device-verification step for new personal accounts (an official Help page exists, but its contents were not read), a verified-developer requirement and a package-name registration deadline of 30 September 2026. Not found: versionCode rules, the bundle Gradle task, staged rollout percentages, what each testing track does, and the review process. Everything else is general knowledge, labelled so. Code is unrun (no Kotlin compiler on the machine used to write this); nothing was seen in any console.

Before You Start: What You Need

  • A Play developer account. (general knowledge) Created by you, with a registration fee and identity checks that Google decides on. Not covered by the searches: look at the "Get started with Play Console" help page. Nothing here creates it for you.
  • A finished, tested release build from Chapters 5 and 6 (R8 on, tested by hand).
  • A privacy policy at a public URL (blogs say it is required: confirm), a store listing and screenshots.

Version and Target

// app/build.gradle.kts (general knowledge; check the current DSL for your AGP) android { defaultConfig { applicationId = "com.yourname.notes" // permanent once published: choose it carefully minSdk = 26 targetSdk = 36 // docs (via a Play Help summary): new apps and updates must target API 36 or higher from 2026-08-31 versionCode = 1 // a whole number that must go up with every upload (general knowledge) versionName = "1.0.0" // what users see } }
  • (general knowledge) versionCode is a whole number that must increase with every upload, versionName is the label people read. The searches did not cover the rule; confirm in the docs.
  • (official page, as summarised) New apps and updates must target API 36 or higher from 31 August 2026. That date has passed; the extension mentioned in blogs ended on 1 November 2026. Check the live page: the target level rises about once a year.
  • (general knowledge) Raising targetSdk opts you in to newer behaviour changes, so test the app after raising it, in particular the permission and foreground-service changes of Chapters 3 and 4.

Signing

# In Android Studio: Build > Generate Signed Bundle / APK (docs), then: # 1. choose Android App Bundle # 2. create a NEW keystore and key (this is your UPLOAD key) # 3. keep the keystore file and its passwords somewhere safe, OUTSIDE the repository # 4. choose the release build variant and finish # # Docs (Android Studio / Play Help): # - bundles are signed with an upload key before upload; Play App Signing does the rest # - the upload key and the app signing key should be different # - suggested validity: at least 25 years # - a lost upload key can be reset through the Play Console # - register the Google-held app signing key's fingerprint with API providers (Maps, OAuth...) # - the signing key is fixed once the app is published to an open track or production
  • Why two keys. (docs) You sign with an upload key; Google holds the app signing key that signs what users receive. If you lose the upload key, it can be reset; (general knowledge) that is much better than the old model, where losing the one key meant you could never update your app.
  • Back it up. (general knowledge) Keep the keystore and its passwords out of the repository (Chapter 5) but safely stored somewhere you will still have in three years.
  • Fingerprints. (docs) If you use Maps or Google sign-in, register the Google-held signing key's fingerprint, or those features may fail in the store version while working in your own builds.
# From the command line (general knowledge, not checked in these searches): ./gradlew bundleRelease # The .aab appears under app/build/outputs/bundle/release/ (check the path on your machine)

(blogs, unconfirmed) New apps are uploaded as an Android App Bundle (.aab) and not an APK. (general knowledge) Google Play then builds the right APKs for each device from the bundle.

The Play Console Route (described, not performed)

  1. Create the app in the console: name, language, free or paid (general knowledge; the "Create and set up your app" help page came up but was not read).
  2. Fill in the app content declarations: privacy policy, Data safety form, content rating (blogs say all are required; read the official pages). Answer from what the app really does. The Data safety answers must match the real behaviour, including what Firebase (Chapter 8) collects (general knowledge).
  3. Store listing: title, descriptions, icon, graphics, screenshots (blogs list the sizes above: confirm in the console, which tells you its limits).
  4. Upload a release to a track (docs: closed testing is under Test and release > Testing, and creating a release needs the testing-release permission).
  5. Test, then ask for production, if your account needs the closed test (next section).
  6. Review and rollout (general knowledge, not in the searches): Google reviews the app; a staged rollout lets you release to a percentage of users first. Confirm the options in "Prepare and roll out a release".

Testing Tracks and the New-Account Rule

TrackPurpose (general knowledge; the searches did not describe each)
Internal testingQuick checks by a small group, such as you and friends
Closed testingA chosen list of testers; (official page) the one used for the new-account requirement
Open testingAnyone can join; the app's signing key is fixed once it is on an open track (docs)
ProductionEveryone, in the store
  • (official page) A personal account created after 13 November 2023 needs a closed test with at least 12 testers opted in continuously for 14 days before applying for production. A tester who leaves and rejoins restarts the count, and Production stays disabled until the requirement is met.
  • (general knowledge) Plan for this: you need 12 real people with Android phones who will stay opted in. Start the test early, and keep a list of who has accepted. Whether your account is covered depends on when it was created and on its type: the console tells you.

Before You Press Publish

Release checklist (the notes app)
[ ] applicationId chosen and final
[ ] targetSdk meets the CURRENT Play requirement (check the live Play Console Help page)
[ ] versionCode higher than any earlier upload; versionName set
[ ] R8 on for release (Chapter 5), release build tested by hand
[ ] No debug-only code or keys; StrictMode only in debug (Chapter 6)
[ ] Privacy policy URL ready; Data safety answers match what the app really does
[ ] Signed .aab built with the upload key; keystore and passwords backed up
[ ] Store listing text and graphics ready; screenshots from a real run
Compared with the Classic UI course
Android Development: Production & Publishing 7 teaches publishing to Google Play. The path is the same; what changes is that this edition leads with the current rules (a high target API level, Play App Signing with an upload key, the closed-test requirement for newer personal accounts) and says honestly which of them were confirmed on an official page and which only on blogs.

Try It Yourself

Exercise 1

Set applicationId, versionCode and versionName, and build a signed release bundle with a new keystore. Report where the keystore is stored, how you backed it up, and the path of the bundle. Do not upload anything.

๐Ÿ“„ View solution
Exercise 2

Open the Play Console Help pages for target API level and for the new-account testing requirement. Write down today's target level, whether your account is covered by the 12-tester rule, and anything that differs from this chapter.

๐Ÿ“„ View solution
Exercise 3

Work through the release checklist for the notes app and mark each item done or not. Write the Data safety answers you would give, based on what the app actually stores and sends. Add anything the checklist is missing.

๐Ÿ“„ View solution
Not Yet Verified
Confirmed against official pages (as summarised by search results): signing and Play App Signing statements; the new-account closed-test rule; the track and permission pointers; the API 36 requirement and its date.
Blogs only, unconfirmed: listing limits; the Data safety, content rating and privacy-policy requirements; the bundle requirement; device verification; the verified-developer requirement and 30 September 2026 deadline.
General knowledge, not checked: the Gradle snippet and the versionCode rule; the bundle command and output path; the track purposes other than closed testing; review and staged rollout; the account fee and identity checks; the checklist.
Not verified: anything seen in a real console; the live state of any rule on the day you read this. Nothing was published, signed or uploaded by me.
Sources: Sign your app (developer.android.com), Use Play App Signing (Play Console Help), App testing requirements for new personal developer accounts (Play Console Help), Target API level requirements for Google Play apps (Play Console Help), Prepare and roll out a release (Play Console Help), Create and set up your app (Play Console Help), Set up an open, closed, or internal test (Play Console Help).
Coming up
Chapter 8, the last, is Firebase: Crashlytics, Analytics, Remote Config and push messages, described from the docs, and the last of the three risky chapters.