首页 > 解决方案 > 是否可以更改 apk 的签名?

问题描述

客户需要签名的 APK,但他没有给我们现有的密钥。同时,客户也无法从我们给他的代码中创建签名的 apk。他曾经考虑过的唯一选择:我们给了他 apk,他用现有的 jks 签名。但是,当他尝试使用 Jarsigner 工具对其进行签名以使用其 Google Enterprise 密钥重新签署应用程序时,它会引发错误:

unable to sign jar: java.io.EOFException: Unexpected end of ZLIB input stream

There is something possibly wrong with GZIPInputStream or GZIPOutputStream, or possibly there is no gz.close(); which would need to be called on the GZIPOutputStream in order for the code to read it.v

标签: android

解决方案


您无法使用不同的.jks文件更新应用程序。有关更多详细信息,请阅读此文档 并与您的客户共享。


推荐阅读