Package an android project into an APK File

Source: Internet
Author: User

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!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.