Created
March 6, 2015 23:49
-
-
Save munho/ef825997d52618cd7e72 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Put this into ~/.gradle/gradle.properties | |
RELEASE_STORE_FILE={path to your keystore} | |
RELEASE_STORE_PASSWORD=***** | |
RELEASE_KEY_ALIAS=***** | |
RELEASE_KEY_PASSWORD=***** | |
Modify your build.gradle like this: | |
... | |
signingConfigs { | |
release { | |
storeFile file(RELEASE_STORE_FILE) | |
storePassword RELEASE_STORE_PASSWORD | |
keyAlias RELEASE_KEY_ALIAS | |
keyPassword RELEASE_KEY_PASSWORD | |
} | |
} | |
buildTypes { | |
release { | |
signingConfig signingConfigs.release | |
} | |
} | |
.... | |
Then you can run gradle assembleRelease | |
http://stackoverflow.com/questions/18328730/how-to-create-a-release-signed-apk-file-using-gradle |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment