Eclipse packs the android project into a signed APK File

Source: Internet
Author: User

After the android project is developed, it is necessary to package the android project file into an APK file and finally download it to the real machine for running. The following is a personal APK package process, which is recorded in text format. For more information, see http://www.cppblog.com/fwxjj/archive/2010/05/24/426208.html.

In fact, the lazy way is to find the file directly in the bin directory of the eclipse project, which is an APK file automatically generated by the eclipse system.

1) generate a keystore

Run the following command in the c: \ Program Files \ Java \ jdk1.6.0 _ 10 \ bin> directory and enter keytool-genkey-alias android. keystore-keyalg RSA-validity 100000-keystore android. keystore

It indicates that-validity indicates the validity period of the certificate, which is set to 100000 days. The space and the Return key are counted as passwords.

After the command is executed, the android. keystore file is generated in the c: \ Program Files \ Java \ jdk1.6.0 _ 10 \ bin> directory. -1

Figure-1 generate Android. keystore under the command line

2.) eclipse generates the APK File

Select the project to be packaged, right-click and choose Android tools> export signed application package... -2

Figure-2 eclipse packaging Tool

The next step is continuous next. Only the image is pasted below, which is not explained.

Step 2: select a packaged Project

Step 3: select the generated Android. keystore file and enter the password

Step 4: Select alias key and enter the password

Step 5: Finally select the Directory and file name for generating the android APK File

The final APK File

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.