Updated about 4 hours ago | GitHub
On this page

Publishing to the Play Store

Necessary steps

  1. Remove Log method calls
  2. Digitally sign and export the app
  3. Sign up for a Publisher Account on Google Play
  4. Upload the app bundle and enter application details

Target API level: Google Play enforces a rolling minimum targetSdkVersion. Effective August 31, 2026, new apps and app updates must target Android 16 (API level 36) or higher (Wear OS and Android Automotive OS apps must target API 35; Android TV and Android XR apps must target API 34). Existing apps must target API 35 or higher to remain discoverable to new users on newer devices. Developers can request an extension to November 1, 2026 via the Play Console. See Meet Google Play’s target API level requirement for the current policy.

App format: Google Play has required the Android App Bundle (.aab) format for new apps since August 2021. When you publish a new app to Google Play for the first time, you must also configure Play App Signing: Google manages the app signing key, and the key you create in the wizard below becomes your upload key.

Disable Log calls

To avoid deleting all the log calls manually, Android Studio provides tools to do so easily.
By configuring Proguard, statements to strip calls to any of the Log methods can be added.

Firstly, Proguard needs to be enabled in the module’s build.gradle file. Also, change the standard default proguard settings file to proguard-android-optimize.txt, which is better suited for optimizing the apk file.

buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }

Next, add the following lines to the proguard-rules.pro file:

-assumenosideeffects class android.util.Log {
    public static boolean isLoggable(java.lang.String, int);
    public static int v(...);
    public static int i(...);
    public static int w(...);
    public static int d(...);
    public static int e(...);
}

This option for Proguard is only applicable when optimizing and will remove all the listed methods.

Note: It is possible to publish an app without this step, but it’s highly recommended to do it for performance reasons.

Note: When logging sensitive information, it is needed to use another method to remove the strings that are actually logged in the log methods.

Generate release ready apk

Digitally signing and exporting is easier than it sounds, using the wizard built into Android Studio.

To make use of it, click Build > Generate Signed Bundle/APK, select Android App Bundle (required for new apps on Google Play) or APK, and click Next. The screenshots below show an older version of this wizard.

Select the module that has the app code, if prompted to do so.

Create a new key store if first time. Else, skip.

The key store holds the private digital key needed to sign the application. Store it in a common location, for further use.

Provide an Alias for the key in the key store and enter its validity in number of years. The official signing guide recommends at least 25 years, and Google Play requires the key’s validity period to end after 22 October 2033.

Fill in at least one field of the certificate’s organizational details.

Pick desired key from key store or create a new one.

Finally, pick the folder in which the signed bundle or APK will be saved. Make sure the Build Type is set to release.

Note: Sign every update to the same app with the same key. With Play App Signing, a lost or compromised upload key can be reset through the Play Console; apps that manage their own signing key cannot be updated if that key is lost.

Note: For different apps a new keystore could be generated every time, but the recommended approach is to generate one key store per developer/organization and then sign all apps with the same key store.

Note: Remember your password and the keystore location.

Become a Publisher

Get started with Play Console walks through all the steps required to sign up for a developer account.

If you plan to sell paid apps, in-app products or subscriptions, also create a payments profile to manage and track your app sales from Play Console.

  1. Go to the Google Play Console which enables developers to easily publish and distribute their applications, and sign up for a developer account.
  2. Read and accept the Developer Distribution Agreement.
  3. Pay the US$25 one-time registration fee.
  4. Choose a personal or organization developer account type.
  5. Verify your developer identity information. The requirements depend on the account type chosen.
  6. Personal accounts only: meet the app testing requirements and verify access to an Android device using the Play Console mobile app before publishing.

Developer console

This is the place to manage the (un)published apps. There is the possibility to get everything ready in a draft status before actually publishing the application.

The Play Console Release with confidence guide is another very important resource to help understand the publishing process and determine which steps were left out.

Automating Play Store publishing

See Automating Publishing to the Play Store for an advanced tutorial about streamlining the process for pushing your updates.

References