How to setup Signing configuration in Android Studio/Gradle

Add following to your build.gradle :



android {

defaultConfig {}
signingConfigs {

   release {
      storeFile file("<path-to-signing-keys>/signingKeys.jks")
      storePassword "your store password"      keyAlias "your chosen alias"      keyPassword "password"
   }
}
You can also publish to playtore by adding following configuration to your build.gradle:
play {
    serviceAccountEmail = 'serviceAccount@gmail.com'    pk12File = file('key.p12')
    track = 'alpha'}

Comments

Popular posts from this blog

How to fix "Plugin with id 'com.android.library' not found." issue with Android Libraries

Setting up .netrc file on Mac OS X (Lion) for Git

How did I setup SSL with HTTPClient-4.1.2