问题描述
我只是成功签署了一个Android应用程序,我正在尝试重新发布到商店.如果我在jarsigner之后必须运行zipalign,我不能记得?或者我跑jarsigner后,我都很好?
我在这里看: http://developer.android.com/guide/publishing/publishing.html 并没有真正找到"Google Play上的发布更新"部分中的答案.
还,当我上传新的apk时,我必须停用旧的吗?或者只是上传旧的?
谢谢!
推荐答案
请参阅此处: http://developer.android.com/guide/developing/tools/ziphign.html
警告:您必须在App-Building Process中的两个特定点之一使用Zipalign,具体取决于您使用的应用程序签名工具:
如果使用apksigner,则唯一必须在签名APK文件之前执行ziphign.如果您使用apksigner签署APK并进一步更改APK,则其签名无效.
如果使用Jassigner,则唯一必须在签名APK文件后执行ziphign.
问题描述
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 all good?
I am looking here: http://developer.android.com/guide/publishing/publishing.html and not really finding the answer to that in the "Publishing Updates on Google Play" section.
Also, when I upload the new apk, do I have to deactivate the old one? Or just upload over the old one?
Thanks!
推荐答案
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.