我已在 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/