找不到压缩对齐发布的应用程序时, [英] cannot find zip-align when publishing app

查看:163
本文介绍了找不到压缩对齐发布的应用程序时,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

cannot.find.zip.align=The zipalign tool was not found in the SDK.

Please update to the latest SDK and re-export your application
or run zipalign manually.

Aligning applications allows Android to use application resources
more efficiently.

这是我收到的时候我想发表我的应用程序的消息。我使用的是Android的SDK工具的最新版本(23这是今天公布)和SDK平台工具(20于今日同时公布)。我得到了一个APK出来的,但如果我试图把它上传到谷歌播放我得到一个错误,抱怨它不压缩对齐。

This is the message I received when I tried to publish my app. I'm using the latest revision of Android SDK Tools (23 which was released today) and SDK Platform-tools (20 which was also released today). I got an APK out of it, but if I tried to upload it to Google Play I got an error complaining that it is not zip aligned.

运行zipalign手动修复APK,但没有人知道是什么原因导致这个问题以及如何解决它?

Running zipalign manually fixes the apk, but does anyone know what causes this and how to fix it?

推荐答案

我有同样的问题。 而要解决这个问题,我复制Zipalign文件从SDK /集结工具/ Android为4.4W文件夹SDK /工具/

I had the same problem. And to fix it, I copy the Zipalign file from sdk/build-tools/android-4.4W folder to sdk/tools/

编辑:由于谷歌更新的SDK为Android,新集结的工具不会修复这个问题。所以我鼓励大家更新到 Android SDK中内建工具20 作为下面的建议后由庞。

Edited: Since Google updated SDK for Android, new build-tools does fix this problem. So I encouraged everyone to update to Android SDK Build-tools 20 as suggested by Pang in the post below.

这篇关于找不到压缩对齐发布的应用程序时,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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