版本code VS VERSIONNAME在Android清单清单、版本、code、VS

由网友(死了都没人理)分享简介:我已经在Android市场上的版本code = 2,版本名称= 1.1 我的应用程序不过,今天在更新,我改变了清单中的版本code = 3,但错误地改变了我的版本名称为1.0.1,并上传APK市场。现在,将我的应用程序的用户获得更新通知上自己的手机或没有?或者我应该再重复此过程?解决方案 从http://develo...

我已经在Android市场上的版本code = 2,版本名称= 1.1

我的应用程序

不过,今天在更新,我改变了清单中的版本code = 3,但错误地改变了我的版本名称为1.0.1,并上传APK市场。

现在,将我的应用程序的用户获得更新通知上自己的手机或没有?或者我应该再重复此过程?

解决方案

从http://developer.android.com/guide/topics/manifest/manifest-element.html

安卓版本code

  

这是内部的版本号。这个数目只用来确定一个版本是否比另一个更近,数字越大,表示更近的版本。这是不向用户显示的版本号;这一数字是由VERSIONNAME属性设置。   该值必须被设置为一个整数,如100。您可以定义它不过你想要的,只要每个后续版本都有一个较大的数字。 [...]

安卓VERSIONNAME

  

向用户显示的版本号。该属性可被设置为一个原始字符串或作为参考,以字符串资源。串具有比要显示给用户的任何其他目的。该版本code属性包含内部使用的显著的版本号。

阅读它的pretty的清楚,VERSIONNAME是多数民众赞成向用户​​显示只是一些版本code是最重要的。只要保持增加它,一切都应该是不错的。

VSCode常用基础插件

I had my app in the android market with version code = 2 and version name = 1.1

However, while updating it today, I changed the version code = 3 in the manifest but by mistake changed my version name to 1.0.1 and uploaded the apk to the market.

Now, will the users of my app get an update notification on their phones or not? Or should I redo the process again?

解决方案

From http://developer.android.com/guide/topics/manifest/manifest-element.html

android:versionCode

An internal version number. This number is used only to determine whether one version is more recent than another, with higher numbers indicating more recent versions. This is not the version number shown to users; that number is set by the versionName attribute. The value must be set as an integer, such as "100". You can define it however you want, as long as each successive version has a higher number. [...]

android:versionName

The version number shown to users. This attribute can be set as a raw string or as a reference to a string resource. The string has no other purpose than to be displayed to users. The versionCode attribute holds the significant version number used internally.

Reading that it's pretty clear that versionName is just something that's shown to the user, versionCode is what matters. Just keep increasing it and everything should be good.

阅读全文

相关推荐

最新文章