How does the Android build process work?
11,143
Solution 1
You can take a look at the official document Building and Running http://developer.android.com/tools/building/index.html
Solution 2
Here is a good explanation of android build process
Solution 3
Java source code is 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'.
Related videos on Youtube
Author by
A J
Updated on June 04, 2022Comments
-
A J over 1 year
I've found a good article on how the Android build process works, which shows the following process:
However, I've also seen another article which says that it uses
javac
to convert all files to.class
files, then thedx tool
in theadk
converts all.class
files toclasses.dex
, like so:Please can someone clarify which one is correct?
-
A J about 8 yearsThanks for your reply Ajit. It's been a long time. Please up vote the Question if you liked.
-
Rick over 5 yearsWhat happens with SDK/NDK if i have a code written in it