In this gist I will explain what are all the steps that I followed in order to generate a signed version of my .aab.
Note: This signing process only works on Ubuntu and only works in a single terminal. YOU MUST COMPLETE ALL THE STEPS IN A SINGLE TERMINAL.DO NOT CLOSE THE TERMINAL IN ANY STEPS IN BETWEEN.
- Open any directory in your terminal(I prefer the documents directory).
- Now type
mkdir -p ~/keystores/
. This will create a folder in your home directory witht the namekeystore
. Keep this folder safe as you need it to update your app later down the line - Now run this command
keytool -genkey -v -keystore ~/keystores/<your-new-key>.keystore -alias <your-key-alias> -keyalg RSA -keysize 2048 -validity 10000
. Here replace<your-new-key>
with the name of your keystore. Replace<your-key-alias>
with the name of your key(typically your app name) Set the validity to whatever you want. It represents the number of days your key will be valid. I would recommend setting it to the numbe