如何获得Mac的zipalign? [英] How to get zipalign for mac?

查看:506
本文介绍了如何获得Mac的zipalign?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经有一个发行未签名版本的apk,我正在尝试在我的Mac上对其进行签名.在最后一步中,建议对已签名的apk进行zipalign,但Mac没有zipalign.

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.

我做了'brew search'仍然找不到它.我在线搜索,找不到独立的zipalign脚本.我什至从 http://developer.android.com/sdk/index.html#Other下载了大约9000万个Android sdk工具,但内部仍未找到zipalign.

I did 'brew search ' still can't find it. I searched online and can't find standalone zipalign script. I even downloaded around 90M Android sdk tool from http://developer.android.com/sdk/index.html#Other but still found no zipalign inside.

所以我的问题是,给您一个要在Mac上签名的"apk"文件,如何完成最后的"zipalign"步骤?

So my question is, given you an "apk" file to sign on mac, how to get through the last "zipalign" step?

推荐答案

感谢RC提供的信息.

Thanks the info from RC.

我终于解决了这个问题.我按以下步骤操作:

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

  1. 从官方网站下载250M + android studio ide dmg.将其拖到应用程序"文件夹中
  2. 打开它,它会自动下载很多其他内容
  3. 我什至创建了一个空的新项目.

然后在某些步骤(我不确定是哪一步)中在此处创建了zipalign:

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

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

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

如果只需要"zipalign",则不需要重做这些步骤,这会花费时间和磁盘空间.我将其提取到github中(无法相信没有人提取它-_-):

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

这篇关于如何获得Mac的zipalign?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆