title: What Gradle task(s) does IDEA / Android Studio run when I press Sync Now and the Refresh button?
body: <p>See image below: </p>
  
  <p><img src="https://i.stack.imgur.com/pl1NE.png" alt="&quot;Sync now&quot; link to the left, Refresh icon button to the right"></p>
  
  <p>What exactly does the Sync now (blue) and refesh button (red) do respectively? What Gradle Tasks and/or other processes does Idea/Android Studio launche when clicking these?</p>
  
  <p>I need to debug some errors with my gradle.build file and knowing what these buttons do will help me in that regard. </p>