In order to facilitate the development of Android applications we have a deeper understanding of androidproject preparation and packaging, for example, we know what it is to do every step of the landscape and tools. What the inputs and outputs are. Wait a minute.
In the previous "command line Android app development" We already know how to create a androidproject and compile an application that performs a debug version number. This article describes the entire compilation process for Androidproject.
First, analyze how Ant will package Androidproject compilation into an apk file.
Run Ant Debug command when Ant Script Build.xml each Target graph of dependencies between
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvsgfuvgfuz1nvbmdnaw5n/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma== /dissolve/70/gravity/southeast ">
Run Ant Debug command when Ant script each Target Run sequence diagram
Android application build process Diagram
from the above illustrations, we can summarize Androd The application build process is for example the following:
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 Tuning Process
Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.
Build process for Android Analytics application