title: Signing Configuration in gradle.build
body: <p>I'm developing in Android Studio 0.2.11, and I'm trying to upload my app to Google Play. When I was trying to generate a signed APK (by clicking Build -> Generate Signed APK) I get the following message:</p>
  
  <p>"For Gradle-based projects, the signing configuration should be specified in the Gradle build scripts. See the Gradle User Guide for more info". </p>
  
  <p>I googled a lot, and found out that I need to add some functions into gradle.build, like <code>signingConfigs</code> and <code>buildTypes</code> with a <code>storeFile</code>, <code>storePassword</code>, <code>keyAlias</code> and <code>keyPassword</code>. This is all the code that I have in gradle.build at the moment:</p>
  
  <pre><code>buildscript {
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:0.5.+'
      }
  }
  apply plugin: 'android'
  
  repositories {
      mavenCentral()
  }
  
  android {
      compileSdkVersion 18
      buildToolsVersion "18.1.0"
  
      defaultConfig {
          minSdkVersion 9
          targetSdkVersion 18
      }
      signingConfigs {
          release {
              storeFile file("release.keystore")
              storePassword "******"
              keyAlias "******"
              keyPassword "******"
          }
      }
      buildTypes {
          release {
              signingConfig signingConfigs.release
          }
      }
  
  }
  
  dependencies {
      compile 'com.android.support:appcompat-v7:18.0.0'
  }
  </code></pre>
  
  <p>I don't know what alias, password and store type I'm supposed to write? Where do I find the right ones? And what is the next step? How do I get a signed APK so that I can upload it to Google Play? </p>
  
  <p>Any help is very appreciated, I've been searching for a solution for hours now on the internet.</p>