title: How to build a 'release' APK in Android Studio?
body: <p>I am trying to build an APK that I can upload to the Play Store. </p>
  
  <p>When I select Build|Generate Signed APK... in Android Studio (version 0.3.1), I am directed to a link on how to properly set up the signing process in the "gradle build scripts":</p>
  
  <p><img src="https://i.stack.imgur.com/T9x3o.png" alt="enter image description here"></p>
  
  <p><a href="http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Signing-Configurations">http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Signing-Configurations</a></p>
  
  <p>Unfortunately, after checking that page I'm at a loss as to what file to edit and what to put in it - I'm coming from a Visual Studio background, so lazily expect stuff to 'just work' :).</p>
  
  <p>(After OK'ing Android Studio's warning message, A.S. brings up a Generate Signed APK Wizard, which I went through, passing my key's details. The resulting APK was rejected by the Play Store for having a key with a too-soon expiry-date).</p>
  
  <p>I also tried bringing up the Android Studio Terminal window and running 'gradle', as instructed in the above message, but this command was not found. So as an aside, since perhaps running the command might do something useful, how would I run gradle?</p>
  
  <p>I found a 'Gradle' window in the A.S. IDE, and tried building the assembleRelease target found in that window. However, the Run window output just shows "<em>Executing external task 'assembleRelease'...</em>".</p>