How can I deploy a release signed apk to attached device using gradle?

I have a keystore file with two keys: one for debug build and another for release build type. So my gradle build script generates two apks on need. Now, to deploy the debug build apk android gradle plugin has installDebug task in it but how about deploying the release build apk? Andorid gradle plugin doesn't have any task like installRelease. How can I deploy the release build apk directly to the connected devices using gradle?


The Android Gradle Plugin already includes the installRelease task but if you don't see it probably there is a signing configuration problem.

From the documentation:

Finally, the plugin creates install/uninstall tasks for all build types (debug, release, test), as long as they can be installed (which requires signing).

You can try to figure out what's wrong with the signingReport task:

./gradlew signingReport

Need Your Help

Customize the Add Location Box : Dynamics CRM 2016

sharepoint crm microsoft-dynamics dynamics-crm-2016

I have a requirement where I need to auto fill the values in the Add Document Location Box when a User clicks on Documents in the Dynamics CRM 2016. I don't think there is an out of the box way to do