You can take a look at the official document Building and Running http://developer.android.com/tools/building/index.html
How does the Android build process work?
-
29-06-2022 - |
Question
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 the dx tool
in the adk
converts all .class
files to classes.dex
, like so:
Please can someone clarify which one is correct?
Solution
OTHER TIPS
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'.
Here is a good explanation of android build process
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow