title: How does the Android build process work?
body: <p>I've found a good article on how the Android build process works, which shows the following process: </p>
  
  <p><img src="https://i.stack.imgur.com/yCaIB.png" alt="enter image description here"> </p>
  
  <p>However, I've also seen another article which says that it uses <code>javac</code> to convert all files to <code>.class</code> files, then the <code>dx tool</code> in the <code>adk</code> converts all <code>.class</code> files to <code>classes.dex</code>, like so:</p>
  
  <p><img src="https://i.stack.imgur.com/0z5gS.png" alt="enter image description here"></p>
  
  <p>Please can someone clarify which one is correct?</p>