title: can not install apk after generate signed apk in Android studio
body: <p>I want to publish my app to google play. So I follow this <a href="https://developer.android.com/studio/publish/app-signing.html" rel="nofollow noreferrer">link</a>.</p>
  
  <p>I created a keystore, and built <code>app-release.apk</code> successfully. But when I install APK to my device, it take error:</p>
  
  <pre><code>~/Android/Sdk/platform-tools$ ./adb install ~/Downloads/libraries/LolliPin/app/app-release.apk 
  [100%] /data/local/tmp/app-release.apk
          pkg: /data/local/tmp/app-release.apk
  Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
  </code></pre>
  
  <p>When upload to Developer Console, the site say app has not signed.</p>
  
  <p>I try again using manual steps: jarsigned --> zipalign --> apksigner but it is not run.</p>
  
  <p>Please tell me the solution. Many thanks!</p>
  
  <p>UPDATE: when I verified the apk (created by android studio --> generate apk signed) by apksigned, it show error:</p>
  
  <pre><code>~/Android/Sdk/build-tools/25.0.2$ ./apksigner verify /home/haitt22/test/app-release.apk 
  DOES NOT VERIFY
  ERROR: No JAR signatures
  </code></pre>
  
  <p>UPDATE 2: when i signed it using apksigner in build-tool, log:</p>
  
  <pre><code>/apksigner sign --ks /home/haitt22/test/test.jks /home/ubuntu/test/app-release-aligned.apk
  Keystore password for signer #1: 
  Exception in thread "main" java.lang.IllegalAccessError: class com.android.apksig.internal.apk.v1.V1SchemeSigner (in unnamed module @0x646d64ab) cannot access class sun.security.x509.AlgorithmId (in module java.base) because module java.base does not export sun.security.x509 to unnamed module @0x646d64ab
      at com.android.apksig.internal.apk.v1.V1SchemeSigner.getSupportedAlgorithmId(V1SchemeSigner.java:625)
      at com.android.apksig.internal.apk.v1.V1SchemeSigner.&lt;clinit&gt;(V1SchemeSigner.java:541)
      at com.android.apksig.DefaultApkSignerEngine.&lt;init&gt;(DefaultApkSignerEngine.java:149)
      at com.android.apksig.DefaultApkSignerEngine.&lt;init&gt;(DefaultApkSignerEngine.java:52)
      at com.android.apksig.DefaultApkSignerEngine$Builder.build(DefaultApkSignerEngine.java:902)
      at com.android.apksig.ApkSigner.sign(ApkSigner.java:259)
      at com.android.apksig.ApkSigner.sign(ApkSigner.java:178)
      at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:277)
      at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:89)
  </code></pre>