找不到压缩对齐发布的应用程序时,找不到、应用程序

由网友(假烟假酒假朋友)分享简介:cannot.find.zip.align=The zipalign tool was not found in the SDK.Please update to the latest SDK and re-export your applicationor run zipalign manually.Alignin...
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.

阅读全文

相关推荐

最新文章