How to zipalign the .apk file using eclipse?

前端 未结 8 1672
日久生厌
日久生厌 2020-12-13 01:29

Can anyone tell me how to zipalign my .apk file with using eclipse. I have made my .apk file by giving command like,

  1. Right Click on Project Folder

8条回答
  •  忘掉有多难
    2020-12-13 02:25

    Eclipse zipalign APKs when you export them by default.

    zipalign is basically a tool available in tools directory of your android sdk.

    In case you are not using eclipse to build, you can use this tool directly to zipalign your apk.

    zipalign [-f] [-v]  infile.apk outfile.apk
    

    The alignment is an integer that defines the byte-alignment boundaries. This must always be 4 (which provides 32-bit alignment) or else it effectively does nothing.

    For more detail, check this link http://developer.android.com/tools/help/zipalign.html

提交回复
热议问题