Launch custom Gradle Android build in Android Studio

Is there an easy way to build, install, and auto-launch a custom Gradle build in Android Studio?

Build android project android studio

  • My app updates won't show in the google play store
  • CardView animation: raise and expand on click?
  • How can I rotate display only in landscape mode in android?
  • Live character count for EditText
  • Latest update on enabling and disabling mobile data programmatically
  • Handling media buttons in Android 5.0 Lollipop
  • 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.

    gradle configuration android studio

    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.

  • How to use the legacy Apache HTTP client on Android Marshmallow?
  • How to distinguish between orientation change and leaving application android
  • Android Studio “design tab” missing
  • Own ContentProvider with SQLite and multiple tables
  • How can I avoid execution of onTextChanged in Android's EditText
  • Android: API level VS. Android version
  • One Solution collect form web for “Launch custom Gradle Android build in Android Studio”

    You can always select a different buildVariant from the buildVariant window on Android Studio. And then if you press the run/play button you should be able to install and run the app on your device/emulator.

    build variants

    And also for me running gradlew install** on the terminal does not launch the app.
    If that’s something you are looking for then take a look at build.gradle and buildhelper.gradle here

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.