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

  • BluetoothHeadset: why is it necessary to use a timer for calling startVoiceRecognition?
  • Cocos2D OR libgdx for Android Game Development
  • Dagger example built through eclipse fails with 'Please ensure that code generation was run for this module.'
  • Is it possible to disable following redirects in OkHttp 2.0?
  • Android: How to draw route directions google maps API V2 from current location to destination
  • How keep aspect ratio in bitmap drawable
  • 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.

    Related posts:

    Android. WebView and loadData
    Does Android plan to support Java7?
    Android SDK source code
    Android Fragments should I reuse 1 fragment or create new instances?
    Android: Unable to add window. Permission denied for this window type
    Build variants in Xamarin for Android
  • How to add a jar in External Libraries in android studio
  • ActionBar Action Items not showing
  • FragmentActivity cannot be resolved to a type
  • RxJava network requests and caching
  • Android: Get Installed Shortcuts
  • Google Play Services with AdMob. Check availability?
  • 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.