Whenever I prepare my APK for the release - I used to do the following steps: Copy keystore to the project directory Copy gradle.properties into the project directory with keystore name, alias and password defined Copy some code from some blog that would load the properties and set up the signing Finally, do gradle build But why not to move the boilderplate out of build.gradle? Helper signing script I wrote a tiny helper script that can be included into the projects: