简体   繁体   English

如何在Play商店中上传应用程序的更新?

[英]How to upload an update of an app in play store?

I have an app in play store versioned 2.0. 我在Play商店中有一个版本为2.0的应用程序。 Now I want to release an update 2.1 but I get this error 现在我要发布更新2.1,但出现此错误

You need to use a different version code for your APK because you already have one with version code 2.

How to upload my new release as 2.1 instead of 3.0? 如何以2.1(而不是3.0)上传新版本?

You need to update the version code in AndroidManifest file. 您需要更新AndroidManifest文件中的版本代码。 2.1 or 3.0 is usually the version name, which are displayed to users. 通常是2.1或3.0,这是显示给用户的版本名称。 Version code is the one you maintained to mark your code version. 版本代码是您维护的用于标记代码版本的代码。

I prefer to just use 1, 2, 3, ... for version code and use others like 1.1, 2.0, 2.1, ... for version name. 我更喜欢只使用1、2、3,...作为版本代码,并使用其他版本(例如1.1、2.0、2.1,...)作为版本名称。

So you just need to set android:versionCode="3" and android:versionName="2.1". 因此,您只需要设置android:versionCode =“ 3”和android:versionName =“ 2.1”。

Version code is always upgrade...its not decresed...but you can set version name manually.. 版本代码始终是升级版本...不降级...但是您可以手动设置版本名称。

please change versionCode 3.0 instead of 2.0,but you have to set android:versionName="2.1" and android:versionCode="3" 请更改versionCode 3.0而不是2.0,但您必须设置android:versionName =“ 2.1”android:versionCode =“ 3”

I hope its useful to you. 希望对您有用。

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

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