title: Launch custom Gradle Android build in Android Studio
body: <p>Is there an easy way to build, install, and auto-launch a custom Gradle build in Android Studio?</p>
  
  <p><img src="https://i.stack.imgur.com/o3rWQ.png" alt="Build android project android studio"></p>
  
  <p>When I press the "Play" (Run) button in Android Studio (with a typical Android project configuration), my project builds, installs it on the proper device, and then launches the app.</p>
  
  <p><img src="https://i.stack.imgur.com/Vgi08.jpg" alt="gradle configuration android studio"></p>
  
  <p>How can I do this with specific Build/Product flavors (using Gradle)? I've gotten as far as creating a Gradle configuration that runs the task "installFlavor1." This installs correctly, but it doesn't auto-launch the app. </p>