Android sdk 中未找到 zipalign 工具

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/24617782/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 08:30:22  来源:igfitidea点击:

the zipalign tool was not found in the sdk

androideclipse

提问by Juliatzin

When I want to export a signed apk, I get this message :

当我想导出已签名的 apk 时,我收到以下消息:

the zipalign tool was not found in the sdk

I've updated my sdk, my eclipse, still get it. Then, I saw I had no file called zipalign in my sdk/tools folder. So I copied one I had in another sdk folder, as I saw in another post.

我已经更新了我的 sdk,我的 eclipse,仍然得到它。然后,我看到我的 sdk/tools 文件夹中没有名为 zipalign 的文件。所以我复制了另一个 sdk 文件夹中的一个,正如我在另一篇文章中看到的那样。

I checked this post : Error while running zipalignI'm exporting to the desktop, so I have rights.

我检查了这篇文章:运行 zipalign 时出错我正在导出到桌面,所以我有权利。

I have no idea, what should I do now. It seems that this problems happens after updating sdk

我不知道,我现在该怎么办。好像是更新sdk后出现这个问题

https://groups.google.com/forum/#!topic/appium-discuss/h7JwtwmJCIM

https://groups.google.com/forum/#!topic/appium-discuss/h7JwtwmJCIM

PD: I use Mac.

PD:我使用Mac。

Any Idea?

任何的想法?

回答by user3827760

In Eclipse, go to Window → Android SDK Manager, check Android SDK **Build-tools** Rev. 20and then click Install.

在 Eclipse 中,转到Window → Android SDK Manager,选中Android SDK **Build-tools** Rev. 20,然后单击Install

After the update restart Eclipse and try again.

更新后重新启动 Eclipse 并重试。