简体   繁体   English

上传具有不同版本代码但版本名称相同的Android应用程序

[英]Upload Android application with different version code but same version name

Can I upload an application with different version code but same version name such as below: 我可以上传具有不同版本代码但版本名称相同的应用程序,如下所示:

Change 更改

android:versionCode="1" android:versionName="1.0" android:versionCode =“1”android:versionName =“1.0”

to

android:versionCode="2" android:versionName="1.0" android:versionCode =“2”android:versionName =“1.0”

Yes. 是。 Version Codes are unique identifiers to the different versions of your application and they must be different. 版本代码是应用程序不同版本的唯一标识符,它们必须不同。 Version Codes must be whole numbers too. 版本代码也必须是整数。 On the other hand, Version Name is what is shown in the Google Play Store to the users and it can be the same. 另一方面,版本名称是Google Play商店中向用户显示的内容,它可以是相同的。

Yes you should be able to do that. 是的,你应该能够做到这一点。

From http://developer.android.com/tools/publishing/versioning.html 来自http://developer.android.com/tools/publishing/versioning.html

android:versionName — A string value that represents the release version of the application code, as it should be shown to users. android:versionName - 一个字符串值,表示应用程序代码的发行版本,因为它应该向用户显示。

This implies that the version name is simply the string that is presented to the user. 这意味着版本名称只是呈现给用户的字符串。 The doc does not state that this has to be unique for each posted version of your app. 该文档并未声明每个发布的应用版本都必须是唯一的。 It is the versionCode attribute that identifies the actual version. 它是用于标识实际版本的versionCode属性。 This is an internal integer value that is not shown to the user. 这是一个未向用户显示的内部整数值。

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

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