简体   繁体   English

apk必须使用相同的证书签名,即使旧证书不正确

[英]The apk must be signed with the same certificates even if old one is not correct

Hy, yesterday, I publish an app on play store. 嗨,昨天,我在Play商店发布了一个应用。 I have done a big mistake, I signed the app with debug.keystore so the map is not shown when the app is published. 我犯了一个大错误,我使用debug.keystore对应用程序进行了签名,因此在发布应用程序时不会显示地图。

to solve this, I resign the app with a new keystore and generate a new map key (with new sh1). 为了解决这个问题,我用一个新的密钥库为应用程序注销并生成一个新的地图密钥(带有新的sh1)。 but the problem that i can't now publish the new apk, they said (The apk must be signed with the same certificates). 但他们说,但我现在无法发布新的APK的问题(该APK必须使用相同的证书签名)。

what I can do now ? 我现在能做什么?

You have to use the same certificate when you update your apk or Google Play won't recognize it as the same app. 更新APK时,您必须使用相同的证书,否则Google Play不会将其识别为同一应用。

From Google documentation 从Google文档

Application upgrade – As you release updates to your application, you must continue to sign the updates with the same certificate or set of certificates, if you want users to be able to upgrade seamlessly to the new version. 应用程序升级–在发布应用程序更新时,如果希望用户能够无缝升级到新版本,则必须继续使用相同的证书或一组证书对更新进行签名。 When the system is installing an update to an application, it compares the certificate(s) in the new version with those in the existing version. 系统在向应用程序安装更新时,会将新版本中的证书与现有版本中的证书进行比较。 If the certificates match exactly, including both the certificate data and order, then the system allows the update. 如果证书完全匹配,包括证书数据和订单,则系统允许更新。 If you sign the new version without using matching certificates, you must also assign a different package name to the application — in this case, the user installs the new version as a completely new application. 如果您在不使用匹配证书的情况下签署新版本,则还必须为该应用程序分配其他软件包名称-在这种情况下,用户会将新版本安装为全新的应用程序。

Source: http://developer.android.com/tools/publishing/app-signing.html 来源: http : //developer.android.com/tools/publishing/app-signing.html

Similar info also here in Android developer blog: http://android-developers.blogspot.com.au/2011/06/things-that-cannot-change.html Android开发人员博客中的类似信息也位于此处: http : //android-developers.blogspot.com.au/2011/06/things-that-c​​annot-change.html

Just as important as the manifest package name is the certificate that application is signed with. 与清单包名称一样重要的是与应用程序进行签名的证书。 The signing certificate represents the author of the application. 签名证书代表应用程序的作者。 If you change the certificate an application is signed with, it is now a different application because it comes from a different author. 如果更改与应用程序签名的证书,则它现在是另一个应用程序,因为它来自其他作者。 This different application can't be uploaded to Market as an update to the original application, nor can it be installed onto a device as an update. 此不同的应用程序不能作为对原始应用程序的更新上传到Market,也不能作为更新安装在设备上。

[...] [...]

In conclusion: There are some parts of your application that can not change. 结论:您的应用程序的某些部分无法更改。 Please be careful. 请注意

So I'm afraid you can't do much in this case. 因此,在这种情况下,您恐怕无法做很多事情。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 apk必须使用与上一个相同的证书签名 - The apk must be signed with the same certificates as the previous one apk必须使用相同的证书签名 - The apk must be signed with the same certificates 错误必须使用相同的证书对apk进行签名 - Error The apk must be signed with the same certificates apk必须使用与先前相同的证书签名 - The apk must be signed with the same certificates as the previous apk 必须使用与之前版本相同的证书进行签名 - The apk must be signed with the same certificates as the previous version Android apk上传失败,并显示错误消息“该apk必须使用与上一个相同的证书签名” - Android apk upload fails with error 'The apk must be signed with the same certificates as the previous one' Android 上传到市场时出错:apk 必须使用与前一个相同的证书进行签名 - Android error while upload to market: The apk must be signed with the same certificates as the previous one android - 必须使用与先前版本相同的证书对apk进行签名 - android - the apk must be signed with the same certificates as the previous version 在市场上上传apk时,必须使用与先前版本相同的证书对apk进行签名 - The apk must be signed with the same certificates as the previous version while uploading apk on market apk必须使用与先前版本相同的证书签名[发布具有其他信息的应用程序] - The apk must be signed with the same certificates as the previous version [release app with other informations]
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM