To Build the release apk you have to go to the build option in android studio
then click on generate apk release
Here If you donβt have any keystore select on create new option
Then give a path to your keystore
remember while creating the keystore the password should be same for keystore and key inorder to avoid the unwanted errors
Β