Android Studio - How to ZipAlign apk

前端 未结 6 1921
逝去的感伤
逝去的感伤 2020-12-13 17:46

I have created a signed apk using Android Studio and I\'m now going to zipalign it, I have read this: http://developer.android.com/tools/help/zipalign.html but I\'m still n

6条回答
  •  隐瞒了意图╮
    2020-12-13 18:02

    If you have created an .apk file (release mode) from Android Studio, your APK is already aligned. The zipalign step is part of the Build Process in Android Studio.

    You can check an APK with:

    zipalign -c -v 4 {APP}.apk
    

    To align an APK, run:

    zipalign -v 4 {APP}.apk {ZIPALIGNED_APP}.apk
    

提交回复
热议问题