android - apk 必须使用与之前版本相同的证书进行签名

标签 android apk google-play

我已在 Google Play 帐户上上传了 apk 文件, 我通过右键单击项目并导出并在其中添加以下详细信息从 Eclipse 创建了 apk 仅密码、别名和开发者单位。

我已成功上传到 Google Play 帐户。 但现在的问题是我已经从本地删除了这个 apk,而且如果尝试使用版本代码 = 2 和版本名称 = 1.0 更新第二个 apk,我也无法上传任何其他 apk,那么它也会给我错误 apk 必须使用与之前版本相同的证书进行签名。

所以请帮我解决这个问题,现在我该怎么做才能在此应用程序中上传新的更新的 apk。

最佳答案

您没有使用相同的 keystore 文件来签署您的 APK。

the .apk must be signed with the same private key. If the package name and signing certificate do not match those of the existing version, Market will consider it a new application and will not offer it to users as an update.

取自此处,

The apk must be signed with the same certificates as the previous version

唯一的方法是使用与之前版本相同的 key 对更新包 apk 进行签名。没有其他去。谷歌对此很严格。

关于android - apk 必须使用与之前版本相同的证书进行签名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11578165/

相关文章:

android - 将外部内容包含到 Android 项目中

java - Javascript 和 Phonegap 插件之间的异步通信

android - AlertDialog 无法在自定义适配器中获取上下文

android - 如何从 Android Studio 中的 APK 构建中排除默认资源?

android - 向 Play 商店发送流量时,在引荐来源网址中使用 utm_* 参数的方法有哪些

android - Android 中 APK 文件的最终用户许可证书?

android - Kestore 在公共(public)场合的可用性

android - 在 KitKat 上使用 Android L Material Design

java - 在我的 tabhost 中强制关闭

android - 为什么需要CERT.SF文件来验证android中的apk?