How to sign an apk , compiled in release mode ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Anand
:warning: Old Version Published before Godot 3 was released.

I have compiled my project in release mode , but when I try to upload it on Google Playstore , it says "apk not signed… something like this.SO my ques. is how to sign the apk
.Pls elaborate.

Your help will be appreciated

:bust_in_silhouette: Reply From: volzhs

Fill this section with your keystore.

How to make a keystore

keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000

reference : android - How can I create a keystore? - Stack Overflow