简体   繁体   English

在Android市场升级应用程序

[英]Upgrading application in android market

I am trying to upgrade my android application in android market. 我想在Android市场上升级我的Android应用程序。 I had updated version code and version name in manifest file. 我在清单文件中更新了版本代码和版本名称。

android:versionCode="3" android:versionName="2.0"

I had used the same key for sign the application. 我使用相同的密钥来签署应用程序。 I am getting error as 'The APK must be signed with the same certificates as the previous version'. 我收到的错误是“APK必须使用与之前版本相同的证书进行签名”。 How can i upgrade my app. 我该如何升级我的应用程序。

You have to have the same keystore file which you have used to upload the 1st version of application on android market. 您必须拥有用于在Android市场上传第一版应用程序的相同密钥库文件。 If you have lost this keystore file then you can't provide update to this application. 如果丢失了此密钥库文件,则无法为此应用程序提供更新。

So in your case, you have to have that keystore file, sign the version 3 apk with this keystore file and upload on the market. 因此,在您的情况下,您必须拥有该密钥库文件,使用此密钥库文件签署版本3 apk并在市场上传。

From Android doc: Publishing Updates on Android Market 来自Android doc: 在Android Market上发布更新

Publishing Updates on Android Market 在Android电子市场上发布更新

At any time after publishing an application on Android Market, you can upload and publish an update to the same application package. 在Android Market上发布应用程序后的任何时候,您都可以上传并发布同一应用程序包的更新。 When you publish an update to an application, users who have already installed the application may receive a notification that an update is available for the application. 将更新发布到应用程序时,已安装应用程序的用户可能会收到有关应用程序可用更新的通知。 They can then choose to update the application to the latest version. 然后,他们可以选择将应用程序更新到最新版本。

Before uploading the updated application, be sure that you have incremented the android:versionCode and android:versionName attributes in the element of the manifest file. 在上传更新的应用程序之前,请确保已在清单文件的元素中增加了android:versionCode和android:versionName属性。 Also, the package name must be the same as the existing version and the .apk file must be signed with the same private key. 此外,程序包名称必须与现有版本相同,并且必须使用相同的私钥对.apk文件进行签名。 If the package name and signing certificate do not match those of the existing version, Market will consider it a new application, publish it as such, and will not offer it to existing users as an update. 如果程序包名称和签名证书与现有版本的名称和签名证书不匹配,则Market会将其视为新应用程序,将其作为此应用程序发布,并且不会将其作为更新提供给现有用户。

您必须使用相同的密钥和相同的密钥别名。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM