1. Support site
  2. Application
  3. Set build essentials Android

How do I sign my Android app?

Android requires that all APKs are digitally signed with a key certificate before installation.

Before you can sign and submit the build to Google Play Store, you need to generate the keystore file, which can be done in two possible ways (1a or 1b):

1a. Generate keystore from command line

Before you can sign and submit the build to Google Play store, you need to generate the keystore file. First step is to check whether the latest version of Java is installed in your computer and a home directory has been set.

  1. Open the command prompt as an administrator and run the following command:$ keytool -genkey -v -keystore [keystore_name].keystore -alias [alias_name] -keyalg RSA -keysize 2048 -validity 10000
  2. Enter the password and verify the same when prompted by the Keytool.
  3. Enter an appropriate additional information when prompted.
  4. Enter the password for the Alias.
    Press the enter key if the password entered is same as the keystore password, else enter a different password and verify the same.
    Now, the KeyStore is generated and is ready for use.

1b. Generate a keystore using Android Studio

You can also generate a keystore file using Android Studio. Check the Android developer site on how to generate the keystore with Android Studio.

2. Sign your Android app:

When you have generated your keystore file, follow these steps:

  1. Provide correct details for the fields specified in Essentials to successfully build an Android application.
  2. The build for native app needs to be signed, when submitting file in Google Play store.