title: Android Studio - Build variation & Module selection
body: <p>I'm building an application which needs a library with 2 variants - simulator &amp; actual. </p>
  
  <p>My objective is to create build tasks say assembleSimulatorDebug &amp; assembleDebug.
  assembleSimulatorDebug will include simulator module/library and assembleDebug will include actual module to build the apk.</p>
  
  <p>I'm thinking of having if else blocks in dependencies sections of build.gradle. Can I have something like this?</p>
  
  <p>I'm very new to gradle and trying from yesterday to set up something like this. It will be v helpful if anyone can provide some hints or links where I can get an idea to achieve this.</p>