您上传未压缩对齐错误的APK [英] You uploaded an APK that is not zip aligned error

查看:1362
本文介绍了您上传未压缩对齐错误的APK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚完成并通过机器人工作室签署了APK, 然后,我已经挺了过来apkprotect.com的APK保护 当我试图上传APK玩商店,我得到这个错误您上传未ZIP对齐的。你需要在你的APK运行一个zip对齐工具,并重新上传的APK。 如果我上传原来的apk我没有错误,

I have just finished and signed the apk through android studio, then I have did an apk protect through apkprotect.com when I am trying to upload the apk to play store I got this error " You uploaded an APK that is not zip aligned. You will need to run a zip align tool on your APK and upload it again. " if I upload the original apk I got no errors,

我试图添加zipalign真正的build.gradle却没有任何反应 我曾尝试也禁用和启用ProGuard的。

I have tried to add zipalign true in the build.gradle but nothing happened I have tried also disable and enable proguard .

推荐答案

您可以手动在命令行运行zipalign

You can run zipalign manually in command line

zipalign [-f] [-v] <alignment> infile.apk outfile.apk

请注意,zipalign位于内$ {sdk.dir} \工具

Note that zipalign is located inside ${sdk.dir}\tools

有关更多详情,请访问 zipalign

For more details visit zipalign

[更新]

另外,如果你需要签署它,你可以做到这一点使用

Also, If you need to sign it you can do that using

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore YOURKEYSTORE unsigned.apk alias_name

的jarsigner 位于java的JDK_HOME /箱内部)

(jarsigner is located inside java JDK_HOME/bin)

这篇关于您上传未压缩对齐错误的APK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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