-
Navigate to the project folder
-
In the command line run
ionic build android --release
-
Then in the command line run
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore platforms/android/build/outputs/apk/android-release-unsigned.apk alias_name
Change "my-release-key.keystore" and "alias_name" to match your app. You may also need to change the name of the apk file.
Also, after the build process in step 2, you should see the path to your release apk at the bottom of the output.
-
The
zipalign -v 4 platforms/android/build/outputs/apk/android-release-unsigned.apk MyApp.apk
You may need to change the name of the apk file. The signed apk will be in the main folder unless you specify a different folder.