Zipalign不工作?

时间:2016-09-05 19:48:05

标签: android cordova build

我使用cordova插件创建了android应用程序,我签了他,现在我尝试通过zipalign压缩.apk

./zipalign -v release.apk WoW.apk

运行此命令后,我得到了这个:

Zip alignment utility
Copyright (C) 2009 The Android Open Source Project

Usage: zipalign [-f] [-p] [-v] [-z] <align> infile.zip outfile.zip
       zipalign -c [-v] <align> infile.zip

  <align>: alignment in bytes, e.g. '4' provides 32-bit alignment
  -c: check alignment only (does not modify file)
  -f: overwrite existing outfile.zip
  -p: page align stored shared object files
  -v: verbose output
  -z: recompress using Zopfli

怎么了?为什么zipalign无法正常工作?

1 个答案:

答案 0 :(得分:3)

...

./zipalign -v 4 release.apk WoW.apk