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

enter image description here

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'.

Share:
11,143

Related videos on Youtube

A J
Author by

A J

Updated on June 04, 2022

Comments

  • A J
    A J over 1 year

    I've found a good article on how the Android build process works, which shows the following process:

    enter image description here

    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:

    enter image description here

    Please can someone clarify which one is correct?

  • A J
    A J about 8 years
    Thanks for your reply Ajit. It's been a long time. Please up vote the Question if you liked.
  • Rick
    Rick over 5 years
    What happens with SDK/NDK if i have a code written in it