SetEclipse AndroidPackage A project into an APK file is the content to be introduced in this article, mainly to understand and learnEclipse AndroidPackage content, detailsEclipse AndroidFor more information, see this article.
After the Eclipse 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.
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: \ ProgramFiles \ Java \ jdk1.6.0 _ 10 \ bin> directory, enter the keytool-genkey-aliasandroid.keystore-keyalgRSA-validity100000-keystoreandroid.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: \ ProgramFiles \ Java \ jdk1.6.0 _ 10 \ bin> directory. -1
Figure-1 generate android. keystore under the command line
2. Eclipse Android generates an apk File
Select the project to be packaged, right click-> Androidtools-> ExportSignedApplicationPackage... -2
Figure-2 Eclipse Android 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 Eclipse Android. keystore file and enter the password.
Step 4: Select aliaskey and enter the password
Step 5: Finally select the Directory and file name for generating the androidapk File
The final apk file.
Summary:
SetEclipse AndroidThe project is packaged into an APK file.Eclipse AndroidLearning packaged content is helpful to you!