18

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?

Matt Taylor
  • 3,360
  • 1
  • 20
  • 34
A J
  • 4,542
  • 5
  • 50
  • 80

4 Answers4

7

You can take a look at the official document Building and Running http://developer.android.com/tools/building/index.html

c0ming
  • 3,407
  • 1
  • 21
  • 26
3

Here is a good explanation of android build process

enter image description here

Ajit Singh
  • 2,436
  • 23
  • 27
  • Thanks for your reply Ajit. It's been a long time. Please up vote the Question if you liked. – A J Oct 21 '15 at 08:59
2

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

GreyBeardedGeek
  • 29,460
  • 2
  • 47
  • 67
0

Build Process Image

Android Build System in detail

Ajay Deepak
  • 471
  • 5
  • 9