Android App Build process resolution

Source: Internet
Author: User

To be comfortable with Android app development requires a deep understanding of how the Android project is compiled and packaged, such as knowing what it does every step of the way, what environment and tools are needed, what inputs and outputs are, and so on.

In the previous "command line Android app development" We already know how to create an Android project and compile an application that runs a debug version. This article describes the entire compilation process for Android engineering.

First, analyze how ant will package Android project compilation into an APK file.

Execution Ant Debug command when Ant Script Build.xml each Target graph of dependencies between



Execution Ant Debug command when Ant script each Target Execution Sequence Diagram




Android application build process Diagram



from the above illustrations, you can summarize Androd the build process for the app is roughly as follows:

1 , generating the R.java class file

2 , convert. aidl files to. Java class files

3 , compiling. Java class file generation class file

4 , package class file to generate Classes.dex file

5 , package resource files (including res, assets, A ndroid M Anifest.xml, etc.)

6 , Generate Debug mode-Signed APK file

7 , the a PK file for alignment


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.