Details Link: http://www.ncloud.hk/%E6%8A%80%E6%9C%AF%E5%88%86%E4%BA%AB/ionic%E5%9C%A8android%E4%B8%8A%E9%83%A8%E7%BD% b2app%e6%ad%a5%e9%aa%a4/
Once you've built a project with ionic and want to publish it to each App store, we're going to deploy the version we want to publish, and this time we've learned about the Android publishing process, let me introduce you:
-
This command is what we need when we debug the code, usually when we download the template, but we should delete it before we release it.
-
Cordova Plugin RM cordova-plugin-console
-
Before executing this command, you need to change the version number of Config. android-release-unsigned.apk to the corresponding one that will be generated after the command is executed. This is an unsigned apk, and next if you have a signature key you can skip the following steps, just put the android-release-unsigned.apk and your. Keystory in the same directory and execute the 4th command below. If you do not execute the following code to get one.
-
Cordova Build--release Android
-
The execution of this command will let you create a password and other prompts, follow its instructions step by step to fill in. After that there will be a xxx.keystore in the current directory.
-
Keytool-genkey-v-keystore xxx.keystore-alias yyy-keyalg rsa-keysize 2048-validity 10000
-
After executing this command you can get a yyy.apk, check the introduction of Zipalign, Zipalign is an Android platform to organize the APK file tool, it can optimize the packaged Android application, so that the interaction between Android operating system and application More efficient and faster to run.
Ionic deploying app steps on Android