Error while running zipalign

前端 未结 18 1748
眼角桃花
眼角桃花 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:08

    I had this same problem and yes, it was because the tool could not recognize the path. I was using the wrong slash because I got bad advice from a developer blog.

    Sample line command if the file "origin.apk" is in a folder called “storage” in the C directory:

    zipalign -f -v 4 “c:\storage\origin.apk” “c:\storage\done.apk”
    

    Make sure you use the slash above the enter key...a lot of the "examples" I have seen use the one by the shift key and that will not work. This will take the apk called “origin.apk” and zipalign it and then save it to the same directory as the file “done.apk”.

    Maybe this is just on Vista, I dont know. I am using Windows Vista 32-bit.

提交回复
热议问题