Build signed apk | genrate signed apk from ionic project to launch | Trickyworld

Build signed apk | genrate signed apk from ionic project to launch

17 Aug 2017
Submitted bytrickyworld
Build signed apk

Hi guys, After long time I’m back with my post. Today i’m going to show you how to build android apk for launch. I will show you the step by step information to genrate signed APK from cordova or ionic app. Just follow below steps: 1. Go to your app root directory. 2. Add android platform:

cordova platform add android

(use sudo if required) 3. Genrate unsigned apk, using below command.

cordova build android --release

4. Genrated unsigned apk “android-release-unsigned.apk” will saved in “platforms/android/build/outputs/apk/android-release-unsigned.apk”. 5. Now time genrate

keytool -genkey -v -keystore <keystore_name> -alias <put your app alias> -keyalg RSA -keysize 2048 -validity <validity period>


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

5. firstname , lastname ... etc. 6. In last step enter keystore password. 5. my-release-key.keystore saved in current directory. 6. Next step to attach sign the unsign apk.

jarsigner -verbose -sigalg SHA1withRSA -tsa -digestalg SHA1 -keystore <genrate keystore> <unsigned apk path> <alias_name> 
ex: jarsigner -verbose -sigalg SHA1withRSA -tsa -digestalg SHA1 -keystore my-release-key.keystore platforms/android/build/outputs/apk/android-release-unsigned.apk alias_name

7. Enter kestore password. 7. Now, Final step to compress singend apk.

zipalign -v 4 <unsigned_apk_path> <path_to_saved_final_apk>
ex.: zipalign -v 4 platforms/android/build/outputs/apk/android-release-unsigned.apk signed.apk

8. signed.apk saved in current path. 9. signed.apk is ready for launch. 10. just goto you google app developer console and create new release. Watch this tutorial in video



Enjoy. Please comment your query or suggestion.

Recent comments

No comments available.


General Inquiries

Most Welcome if you have any query regarding coding & programming in above mentioned language, Mail me anytime, i would love to help you. Afterall developers are brother from another mother.