zipalign工具成功处理了apk文件,但处理后的apk签名失败。
我通过jarsigned创建了一个签名的apk,但是当我上传到googlePlay时,却收到了以下信息
"Upload failed
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."
我将zipalign与构建工具版本28.0.3一起使用。
因此,我在终端上键入以下命令。
"zipalign -v -p 4 info.apk out.apk"
,是的,我成功了,
我用"Zipalign -c -v 4 out.apk"
来检查,
但是当我注销.apk时,我使用zipalign -c -v 4 out.apk
进行了检查,但失败了。
这是终端(不是全部)中的错误日志
45431924 res/layout/select_dialog_item_material.xml (OK -
compressed)
45432374 res/layout/select_dialog_multichoice_material.xml (OK -
compressed)
45432894 res/layout/select_dialog_singlechoice_material.xml (OK -
compressed)
45433415 res/layout/support_simple_spinner_dropdown_item.xml (OK -
compressed)
45433775 resources.arsc (BAD - 3) ----The error is here!
45947358 build-data.properties (OK - compressed)
xxxx
sed)
46345720 com/igaworks/adpopcorn/pluslock/res/icon_lock.png (OK -
compressed)
46346626
com/igaworks/adpopcorn/pluslock/res/icon_action_install_large.png
(OK - compressed)
Verification FAILED