title: How to solve zipalign error while signing apk
body: <p>I'm trying to sign an app. But I got an error. Here is the debug output of the command:</p>
  <pre><code>java -jar &quot;/root/H4CKINTO/server/app/factory/uber-apk-signer-1.1.0.jar&quot; -a
   &quot;/root/H4CKINTO/server/assets/webpublic/build.apk&quot; 
   --ks &quot;/root/H4CKINTO/server/app/factory/release.jks&quot;  
   --ksAlias key0 --ksPass release101 --ksKeyPass release101 
   --out  &quot;/root/H4CKINTO/server/assets/webpublic&quot; --debug
  
  source:
      /root/H4CKINTO/server/assets/webpublic
  zipalign location: BUILT_IN 
      /tmp/uapksigner-3996937017948623348/linux-zipalign-29_0_216512889318861589737.tmp
  keystore:
      [0] 464fe90b /root/H4CKINTO/server/app/factory/release.jks (RELEASE_CUSTOM)
  
  01. build.apk
  
      SIGN
      file: /root/H4CKINTO/server/assets/webpublic/build.apk (0.36 MiB)
      checksum: e7b0234c434ec43e8b4770ec9ea8ce93073df10c22c1443d9f44010ff47f6ef3 (sha256)
      - could not align 
  could not execute zipalign
  java.lang.IllegalStateException: could not execute zipalign
      at at.favre.tools.apksigner.SignTool.execute(SignTool.java:147)
      at at.favre.tools.apksigner.SignTool.mainExecute(SignTool.java:44)
      at at.favre.tools.apksigner.SignTool.main(SignTool.java:32)
  
  Cmd history for debugging purpose:
  -----------------------
  [/tmp/uapksigner-3996937017948623348/linux-zipalign-29_0_216512889318861589737.tmp, -v, 4, /root/H4CKINTO/server/assets/webpublic/build.apk, /root/H4CKINTO/server/assets/webpublic/build-aligned.apk]
  (-1)
  </code></pre>
  <p>Could you tell me what's the problem here?</p>