Android - do I need to run zipAlign after I run jarSigner?

前端 未结 1 562
清歌不尽
清歌不尽 2021-01-17 04:48

I just successfully signed an android app I am trying to RE-publish to the store. I can\'t recall if I have to run zipAlign after jarSigner? Or after I run jarSigner I am al

相关标签:
1条回答
  • 2021-01-17 05:02

    See here: http://developer.android.com/guide/developing/tools/zipalign.html

    Caution: You must use zipalign at one of two specific points in the app-building process, depending on which app-signing tool you use:

    If you use apksigner, zipalign must only be performed before the APK file has been signed. If you sign your APK using apksigner and make further changes to the APK, its signature is invalidated.

    If you use jarsigner, zipalign must only be performed after the APK file has been signed.

    0 讨论(0)
提交回复
热议问题