title: How are Gradle subtasks executed in build task "assembleDebug"?
body: <p>I have been learning about the Gradle system for Android recently. We know that if we put &quot;gradle tasks --all&quot; in the command line, Gradle will print out all the available tasks.</p>
  <p>What interests me is the list of subtasks under the task &quot;assembleDebug&quot;(such as &quot;bundleDebug&quot;, &quot;compileDebugNdk&quot; etc.). I assume they are subtasks by the indention in front of them.</p>
  <p>Will all these subtasks be executed if we run &quot;assembleDebug&quot; task? If so, what's the order of execution? If not, which ones will be picked up?</p>
  <p><strong>Note:</strong> The subtasks below seem to be listed lexicographically. So we cannot assume it is the execution order.</p>
  <p><img src="https://i.stack.imgur.com/x7One.png" alt="enter image description here" /></p>