title: cordova build --> both debug and release builds are working. But when I do `zipalign` it fails to install on my device
body: <p>I have created an application using angular and processed it using Cordova.</p>
  <p>Now, when I use <code>cordova build android</code> or <code>cordova build --release android</code> I get the desired result i.e. the app is running on my device, even after signing it (with my.keystore) using the below</p>
  <pre><code>jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my.keystore  name1.apk alias
  </code></pre>
  <p>it works fine till here, but when I attempt to zipAlign the same using</p>
  <pre><code>./zipalign -f -v 4 app-release.apk app-final.apk
  </code></pre>
  <p>it shows <code>Verification successful</code>, then when I try to install it prompts--&gt; <code>app not installed</code> on my device.
  What is possibly wrong here?</p>
  <p><em>Below are the steps in sequence.</em></p>
  <ol>
  <li>put the angular dist build in www folder.</li>
  <li>generate keystore using</li>
  </ol>
  <pre><code>keytool -genkey -v -keystore &lt;keystorename&gt; -alias &lt;aliasname&gt; -keyalg RSA -keysize 2048 -validity 10000  
  </code></pre>
  <ol start="3">
  <li>add keystore &amp;&amp; build.json with keystore password.</li>
  <li>run <code>cordova build --release android</code> --&gt; produces app-release.apk</li>
  <li>then using zipAlign in buildtools</li>
  </ol>
  <pre><code>./zipalign -f -v 4 app-release.apk app-final.apk
  </code></pre>
  <p>Also in <code>play console</code> while uploading the generated .apk. I'm getting following:</p>
  <pre><code>You uploaded an APK with an invalid signature (learn more about signing). Error from apksigner: ERROR (Jar signer CERT.RSA): JAR signature META-INF/CERT.SF indicates the APK is signed using APK Signature Scheme v2 but no such signature was found. Signature stripped?
  </code></pre>