title: Installation failed with Android Studio, APK not signed
body: <p>Recently change to Android Studio from Eclipse and I have also changed the JDK from <code>java-open-jdk</code> to <code>jdk1.7.0_45</code>. </p>
  
  <p>Now I'm trying to run my first app and I get this message:</p>
  
  <pre>Installation failed since the APK was either not signed, or signed incorrectly.
  If this is a Gradle-based project, then make sure the signing configuration 
  is specified in the Gradle build script</pre>
  
  <p><strong>Edit:</strong> </p>
  
  <p>When I'm running from Android Studio I get the error displayed above. When I'm running it from the command line I don't get an error (well the app is running and I get an error but nothing to do with gradle).</p>
  
  <p>I got the code from <a href="http://samples.google-api-java-client.googlecode.com/hg/tasks-android-sample/instructions.html" rel="noreferrer">here</a></p>
  
  <p>You can check build.gradle here at <a href="https://code.google.com/p/google-api-java-client/source/browse/tasks-android-sample/build.gradle?repo=samples" rel="noreferrer">google repo</a> </p>
  
  <p><strong>UPDATE 2:</strong></p>
  
  <p>I added this code </p>
  
  <pre><code>signingConfigs {
      release {
          storeFile file("john.keystore")
          storePassword "john"
          keyAlias "johnkeystore"
          keyPassword "john"
      }
  }
  </code></pre>
  
  <p>just above the <code>buildTypes</code> code block in the build.gradle file.
  File john.keystore is on the root of my Project. I'm running <code>gradlew assembleRelease</code> and I'm getting a  <code>xxx-release-unsigned.apk</code>. </p>