我的应用在 android 市场上,版本代码 = 2,版本名称 = 1.1
但是,今天更新的时候,我在manifest中修改了version code = 3,却误把我的版本名改成了1.0.1,然后把apk上传到了市场。
现在,我的应用用户是否会在手机上收到更新通知?还是我应该重做一遍这个过程?
最佳答案
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:版本名称
The version name 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.
很明显,versionName 只是向用户显示的内容,versionCode 才是最重要的。继续增加它,一切都应该很好。
关于android - Android Manifest 中的 versionCode 与 versionName,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9629125/