Error while running zipalign

前端 未结 18 1816
眼角桃花
眼角桃花 2021-02-06 21:48

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

相关标签:
18条回答
  • 2021-02-06 22:17

    For mac

    Because the result of encoding does not match you must do this:

    1. open eclipse.ini
    2. add -Dfile.encoding=utf-8
    0 讨论(0)
  • 2021-02-06 22:18

    I removed the apk file in the Deploy directory and the export worked fine then.

    0 讨论(0)
  • 2021-02-06 22:19

    Sometimes a simple \ instead of a / in the destination file path can lead to this. Double check your multiplatform ant files!

    0 讨论(0)
  • 2021-02-06 22:20

    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

    • the path to the apk is invalid
    • the destination is invalid or does not exists
    • the permissions are invalid (apk is locked by other program)
    0 讨论(0)
  • 2021-02-06 22:20

    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).

    0 讨论(0)
  • 2021-02-06 22:25

    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.

    0 讨论(0)
提交回复
热议问题