I got this error when trying to export a signed apk in Eclipse
Error while running zipalign: Unable to open as zip archive
I have run the Help->Check for Updat
For mac
Because the result of encoding does not match you must do this:
-Dfile.encoding=utf-8
I removed the apk file in the Deploy directory and the export worked fine then.
Sometimes a simple \ instead of a / in the destination file path can lead to this. Double check your multiplatform ant files!
I was getting the same error message. Drove me crazy until i found that my destination path was invalid.
Zipalign will give you that error even if the apk is perfectly valid, but
Adding on my solution:
My problem was that my assets folder was too large, and must have been messing with the zipping somehow. I had to remove files in the asset folder (or add them to _pre_production).
I had the same problem with my zipalign command. Output path was correct but the folders did not exist which was provided in the output path and so i created the folders manually and then it all worked fine.