Android Packaging Process

Source: Internet
Author: User

Android packaging process:

website address:http://developer.android.com/tools/building/index.html



The specific packaging steps are as follows:


1: Generate R.java class files:R.java is automatically generated in Eclipse,ant and command line using the Android SDK to provide the Aapt.exe program generates R.java.

2: The. aidlfile Generation. javaclass file:Eclipseautomatically generated in theAntand command-line useAndroid SDKprovided byAidl.exeBuild. javafile.

3: Compiling. javaclass file GenerationClassFile:Eclipseautomatically generated in theAntand command-line useJdkof theJavaccompilingJavaclass file GenerationClassfile.

4: TheClassFile Package GenerationClasses.dexFile:Eclipseautomatically generated inAntand command-line useAndroid SDKprovided byDx.batcommand line script generationClasses.dexfile.

5: Package resource files (includingRes,Assets,Androidmanifest.xmlwait): Eclipseautomatically generated inAntand command-line useAndroid SDKprovided byAapt.exegenerate a resource bundle file

6: Generates unsignedapkinstallation files:Eclipseautomatically generated inDebugthe signature file is stored inBindirectory,Antand command-line useAndroid SDKprovided byApkbuilder.batcommand script to generate unsignedapkinstallation files.

7: sign the unsigned apk to create the signed android file:

8: Byte- aligned to the signed Android file;


Reference blog:

http://blog.csdn.net/jariwsz/article/details/6728337 ( full zero start write build.xml file )

Http://www.cnblogs.com/youngerbaby/archive/2013/05/18/3085548.html ( based on the Ant folder under the SDK build.xml )


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.