如何使用zipalign解决验证失败的问题? [英] How to solve the failed verification with zipalign?
本文介绍了如何使用zipalign解决验证失败的问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我对zipalign有问题.我无法通过程序.每次运行以Verification FAILED
结尾.对于某些文件,我会看到类似的内容
I have a problem with zipalign. I can't go through the proces. Each run ends with Verification FAILED
. For some files i see something like this
2574474 res/drawable-xxxhdpi-v4/abc_btn_radio_to_on_mtrl_000.png (BAD - 2)
重置
7044070 res/layout/notification_template_media.xml (OK - compressed)
生成了apk,但是当我通过控制台上传它时,收到的信息是未正确压缩.我该怎么办?
The apk is generated but when I upload it via console I receive info that it is not compressed properly. What can I do ?
推荐答案
似乎gradle已在没有zipalign任务的情况下推送了新版本.更改此设置后,我遇到了同样的问题:
Seems like gradle has pushed a new version without the zipalign task. I had the same issue after changing this:
classpath 'com.android.tools.build:gradle:2.+'
到
classpath 'com.android.tools.build:gradle:2.1.2'
问题为我解决了.
这篇关于如何使用zipalign解决验证失败的问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文