Created
November 12, 2017 23:00
-
-
Save charlenopires/5b86c1e935e14a223d9de493f675e49d to your computer and use it in GitHub Desktop.
Configuring KeyTool for Android
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
To local.properties in Gradle Directory | |
============================= | |
storeFile=debug.keystore | |
storePassword=android | |
keyAlias=AndroidDebugKey | |
keyPassword=android | |
Commands | |
============================ | |
cd ~/.android && keytool -genkey -v -keystore debug.keystore -storepass android -alias AndroidDebugKey -keypass android -keyalg RSA -keysize 2048 -validity 10000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On build.gradle
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withInputStream { stream ->
localProperties.load(stream)
}
}