title: APK signing error : Failed to read key from keystore
body: <p>I'm developing android app under intellij and gradle. and using following way to generate keystore file:</p>
  
  <pre><code>keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
  </code></pre>
  
  <p>then used the keystore file in build.gradle:</p>
  
  <pre><code>signingConfigs {
      robert {
          storePassword 'robert'
          storeFile file('/Users/bournewang/Documents/Project/android.keystore')
          keyPassword 'robert'
          keyAlias 'mike'
      }
  }
  </code></pre>
  
  <p>when finally trying to generate signed apk file: ./gradlew assembleRelease</p>
  
  <p>it gives the error:</p>
  
  <p>Execution failed for task ':Myexample:packageRelease'.</p>
  
  <blockquote>
    <p>Failed to read key from keystore</p>
  </blockquote>