title: How to set my gradle for final release apk
body: <p>Earlier my gradle was like this: 
  <strong>WHICH IS OFCOURSE INCORRECT</strong></p>
  
  <pre><code>    apply plugin: 'android'
  
  android {
      compileSdkVersion 19
      buildToolsVersion '19.0.3'
  
      defaultConfig {
          minSdkVersion 11
          targetSdkVersion 19
          versionCode 1
          versionName "1.0"
      }
      buildTypes {
          release {
              runProguard false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
          }
      }
  }
  
  dependencies {
      compile 'com.android.support:gridlayout-v7:19.0.1'
      compile 'com.android.support:appcompat-v7:+'
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile 'com.android.support:support-v4:+'
      compile 'com.google.android.gms:play-services:+'
      compile 'com.jakewharton:butterknife:4.0.+'
      compile 'com.google.code.gson:gson:2.2.+'
      compile 'com.google.android.gms:play-services:+'
  }
  </code></pre>
  
  <p>So while uploading i got an error from google play saying that the apk is still in debug mode and could not allow to upload that apk.</p>
  
  <p>Now after searching over, I found that i need to change my gradle file finally i have come up with this gradle:</p>
  
  <p>Please guide me if i am correct!!</p>
  
  <pre><code>apply plugin: 'android'
  
  android {
      compileSdkVersion 19
      buildToolsVersion '19.0.3'
  
      defaultConfig {
          minSdkVersion 11
          targetSdkVersion 19
          versionCode 1
          versionName "1.0"
      }
      buildTypes {
          release {
              signingConfig signingConfigs.release
          }
      }
  
      signingConfigs {
          release {
              storeFile file("F:\\MyAppFolder\\AppName.jks")
              storePassword "abc1236"
              keyAlias "prince"
              keyPassword "abc1236"
          }
      }
  }
  
  dependencies {
      compile 'com.android.support:gridlayout-v7:19.0.1'
      compile 'com.android.support:appcompat-v7:+'
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile 'com.android.support:support-v4:+'
      compile 'com.google.android.gms:play-services:+'
      compile 'com.jakewharton:butterknife:4.0.+'
      compile 'com.google.code.gson:gson:2.2.+'
      compile 'com.google.android.gms:play-services:+'
  }
  </code></pre>
  
  <p>Now where am i going wrong?</p>
  
  <p>Please help.</p>