android - 是否可以更改 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
解决方案
您无法使用不同的.jks文件更新应用程序。有关更多详细信息,请阅读此文档 并与您的客户共享。
推荐阅读
- python - TypeError: UserCreateForm() 得到了一个意外的关键字参数“初始”
- python - 由于未知原因导致的 jupyter 笔记本错误
- java - 使用 dagger 2 在 android 中注入嵌套的 Recyclerview 适配器时遇到问题
- java - 单元测试 GraphQL 的 DataFetchingEnvironment 问题
- jenkins - sudo:尝试从 JENKINS AWS 实例运行 Shell 脚本时不存在 tty 并且未指定 askpass 程序
- javascript - Axios 帖子返回 401 并注销用户,但仅在 OSX 和 iOS 上
- sql - SQL 选择学生登录
- javascript - 使用 Jest 测试包含未定义函数的代码
- bash - 如何将已安装软件包的列表整理成“单行”以便稍后重新安装(仅使用 grep / cut / sed / awk 等,无需外部工具)
- c# - FindVisualChild - 在 ItemsControl 中获取命名 UI 元素的属性