Submitting Your Android App to Google Play

From RAD Studio
Jump to: navigation, search

Go Up to Android Mobile Application Development

This topic describes the steps necessary to upload an application to Google Play, the Google store for Android applications.


Before you can upload your application to Google Play, you must:

Warning: Never lose the keystore file that you configre at Project > Options > Provisioning or forget its password. Any later updates of your application must be signed with the same keystore file and keystOre alias, otherwise Google Play does not let you upload any update, and forces you to create a different application instead, with a different package ID, which means that your users cannot upgrade automatically.

Submitting Your Application

To submit your Android application to Google Play:

  1. Log into the Google Play Developer Console.
  2. Select Add new application.
  3. On the dialog box that appears, select the default language of your application, the title of your application and select Upload APK.
  4. You are taken to the APK page of your new application. Select Upload your first APK file to Production on the center of the screen (you can alternatively set up beta or alpha testing if you wish), and select the signed application package that you deployed.
  5. When your package file finishes uploading, the Production tab shows information extracted from your package file, and the gray check mark on the right-hand side of the APK tab becomes green:
  6. Complete the mandatory information in the remaining tabs that show a gray check mark until they all show a green check mark instead. Labels of mandatory fields are marked with an asterisk.
    Note: You must click Save after you fill the fields of a tab so that the check mark of that tab turns green.
  7. After you have provided all the necessary information about your application on the Google Play Developer Console, on the page of your application, on the top-right corner, select Ready to publish > Publish this app.

Your application is now published.

Note: It may take several hours until it is actually available through Google Play.

Android App Bundle Support

RAD Studio supports Android App Bundle, the official, new, and recommended publishing format for Android applications.

This publishing format includes all of your Android applications compiled code and resources but defers the generation and signing of the APK to Google Play.

No code changes are required to take advantage of Android App Bundle support in RAD Studio 10.3.3 (Delphi personality).

Publishing an Android App Bundle allows Google Play to use the Dynamic Delivery application servicing model to generate and serve optimized APKs for each user's device configuration.

To generate an App Bundle follow these steps:

  • Open your application's project.
  • Select Release as the active build configuration. (This is an optional step, but it is generally used for distribution cycles).
  • Select Android 64-bit as the active target platform.
  • Select Application Store as the active build type.
  • Click Project > Options menu item.
  • On the Options dialog:
  • Navigate to the Building > Delphi Compiler > Compiling options.
  • Select All configurations - Android 64-bit platform as the active target.
  • Enable the Generate Android App Bundle file (arm + arm64) option.

1 Compiling 1.png

  • Navigate to Deployment > Provisioning options page.
  • Select All configurations - Android 64-bit platform as the active target.
  • Fill the data about the key used to sign the application.



  • Run the application with or without the debugger. (Or alternatively, build and deploy the application).
  • Running the application with or without a debugger has the benefit of displaying the resulting message.
Note: You can not run or debug an App Bundle. To debug the application you have to use .APK package format for each platform separately (32-bit and 64-bit).

Upon a successful app bundle generation, the IDE presents a dialog containing the .aab file path.

The generated .aab file is signed and ready to upload to the Google Play Console.


Once the file is generated you can upload it to the Google Play Console.





For more information about how to opt into application signing by Google Play (mandatory when uploading app bundles) in a new or an existing application, you can visit: and

Sharing APK's though App Bundle

Before RAD Studio 10.4.2, the combination of the Android 64-bit target platform and the Application Store build type was used to generate APKs that supported only 64-bit devices. However, sharing APKs that supported only 64-bit devices turned out to be quite frustrating for developers because of unsuccessful attempts to install these APKs on 32-bit devices or to install 64-bit devices with a 32-bit version of the Android operating system.

Up to RAD Studio 10.4.2, for local or internal testing it is possible to generate a Universal APK from an App Bundle to quickly share an application. Below you can find the command lines for different cases:

  • Generate a Universal APK (contained into an 'APK set') from an App Bundle:
java.exe -jar '<BDS-PATH>\bin\Android\bundletool-all-1.2.0.jar' build-apks --mode=universal --bundle=<ABB-FILE-PATH> --output=<APKSET-FILE-PATH> --ks=<KEYSTORE-FILE-PATH> --ks-pass=pass:<KEYSTORE-PASSWORD> --ks-key-alias=<ALIAS> --key-pass=pass:<ALIAS-PASSWORD>
  • Install the Universal APK extracted from the generated APK set on the connected device:
java.exe -jar '<BDS-PATH>\bin\Android\bundletool-all-1.2.0.jar' install-apks --apks=<APKSET-FILE-PATH> --adb=<ADB-FILE-PATH>

See Also