How to get zipalign for mac?

后端 未结 2 694
暖寄归人
暖寄归人 2021-02-19 22:20

I already have a release unsigned version apk and I am trying to sign it on my mac. On the last step it suggests to zipalign the signed apk but mac doesn\'t have zipalign.

2条回答
  •  渐次进展
    2021-02-19 22:54

    Thanks the info from RC.

    I finally got through this. I did in following steps:

    1. Download 250M+ android studio ide dmg from official site. Drag it into Application folder
    2. Open it, and it automatically downloads a lot of additional stuff
    3. I even created a empty new project.

    Then in certain step(I am not sure which step) it created zipalign here:

    ~/Library/Android/sdk/build-tools/22.0.1/zipalign

    If you only need "zipalign", you don't need to redo those steps, which takes time and disk space. I extracted it into the github(Can't believe no one has extracted it -_- ):

    https://github.com/catccaatt/zipalign

提交回复
热议问题