Error while running zipalign

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

    In my case, I ran the command from the directory where the unsigned apk was and it ran perfectly.

    cd /platforms/android/build/outputs/apk
    zipalign -v 4 android-release-unsigned.apk signed.apk 
    

    This way, I didn't need to worry about specifying the directory.

    ps: I did this on ubuntu.

提交回复
热议问题