Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
How the build process works in Android?
Home
JQuery
How the build process works in Android?
0
votes
asked
Jun 23, 2020
in
JQuery
by
AdilsonLima
How the build process works in Android?
#android
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jun 23, 2020
by
AdilsonLima
First step involves compiling the resources folder (/res) using the aapt (android asset packaging tool) tool. These are compiled to a single class file called R.java. This is a class that just contains constants.
Second step involves the java source code being compiled to .class files by javac, and then the class files are converted to Dalvik bytecode by the “dx” tool, which is included in the sdk ‘tools’. The output is classes.dex.
The final step involves the android apkbuilder which takes all the input and builds the apk (android packaging key) file.
...