Native Apps

icon picker
Publish Android App

Rajesh Jeganathan
Last edited 569 days ago by Rajesh Jeganathan

I) Build and sign a release version of our app:

We can use the Gradle build files with the release build type(Build Variant) to build and sign a release version of our app.
3.png
Notes: If we change the Build Variant, once we should Clean Project and Rebuild Project.
11.png
The versionCode value indicates that the current AAB or APK contains the second release of the app, and the versionName string specifies that it will appear to users.
7.png

II) Prepare remote servers and services that our app depends on:

Our app depends on external servers or services like API integration, making sure they are secure and production ready as well as increasing an API VERSION.

III) Configure our app for release:

We need to make sure that logging is disabled and removed and that our release variant has debuggable false and LOG false for Groovy script set.
8.png

IV) Test the release version of our app:

Before we distribute our app, we should thoroughly test the release version on at least one target handset device and one target tablet device.

V) Inspect APKs using bundle explorer:

If we upload our app as an Android App Bundle(aab), the Play Console automatically generates split APKs and multi-APKs for all device configurations our app supports.
In the Play Console, we can use the app bundle explorer to see all APK artifacts that Google Play generates, inspect data such as supported devices and APK size savings, and download generated APKs to deploy and test locally.
The following steps are to take Android App Bundle(aab) file from Android Studio:
We need to create a [.keystore/.jks] file as a one-time creation.
Step 1: Build -> Generate Signed Bundle/APK
1.png

Step 2: Select Android App Bundle
2.png

Step 3: We need to give the file name of the Keystore as well as Key store password.
And should give the Key alias and Key password to be identified with the app.
4.png

Step 4: Select the Build Variant as release, it’s the package of Android App Bundle(aab) file holder. Then we can get a live build.
5.png
Notes: We see the dialog on bottom of the Android Studio.
12.png

Step 5: We do not need to create a KeyStore file for the second release. Then we can simply take release(aab) from Android Studio as reference below.
6.png

VI) Upload our app to the Play Console:

After we sign the release version of our app, the next step is to upload it to Google Play to inspect, test, and publish our app.
9.png

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.