After the android project is developed, You have to package the android project file into an APK file and put it on the market so that others can share your application! Next, we will introduce how to package an APK.
1, GenerateKeystoreFile
In the command line, enter the following command:
Keytool-genkey-alias Android. keystore-keyalg RSA-validity 100000-keystore Android. keystore
Note:-validity indicates the validity period of the certificate. It is written for 100000 days. The password is calculated by spaces and the Return key.
Enter all information and then confirm. The android. keystore file is generated in the C: \ User \ Administrator directory.
2, Select the project to be packaged, right-click---Android tools---Export signed application package...
3ClickNextClick to select the generatedAndroid. keystoreFile and enter the password
4ClickNextButton, selectAlias keyAnd enter the password
5ClickNextButton, select Save generateAPKFile directory
6ClickFinishButton, wait a moment,APKThe file is generated!