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.
- Open the command prompt as an administrator and run the following command:
$ keytool -genkey -v -keystore[keystore_name]
-keyalg RSA -keysize2048
- Enter the password and verify the same when prompted by the Keytool.
- Enter an appropriate additional information when prompted.
- 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:
- Provide correct details for the fields specified in Essentials to successfully build an Android application.
- The build for native app needs to be signed, when submitting file in Google Play store.