How to zip Align APK file in android?

前端 未结 7 639
难免孤独
难免孤独 2020-12-23 20:09

I am uploading my first APK file to google play but I am getting following error.

You uploaded an APK that is not zip aligned. You will need to run a

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-23 20:44

    try below link or code:-

    To align infile.apk and save it as outfile.apk:

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

    To confirm the alignment of existing.apk:

    zipalign -c -v  existing.apk
    

    The 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.

    Flags:

    -f : overwrite existing outfile.zip
    -v : verbose output
    -c : confirm the alignment of the given file
    

    http://loomsdk.com/forums/loom-with-loomscript/topics/uploading-apk-to-google-play-displays-error-not-zip-aligned

    http://developer.android.com/tools/help/zipalign.html

    http://www.youtube.com/watch?v=ReRCJgS-g9o

提交回复
热议问题