android - Android Manifest 中的 versionCode 与 versionName

标签 android version android-manifest google-play

我的应用在 android 市场上,版本代码 = 2,版本名称 = 1.1

但是,今天更新的时候,我在manifest中修改了version code = 3,却误把我的版本名改成了1.0.1,然后把apk上传到了市场。

现在,我的应用用户是否会在手机上收到更新通知?还是我应该重做一遍这个过程?

最佳答案

Reference Link

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/

相关文章:

android - V7 的 list 合并失败

android - MainActivity NoClassDefFoundError

android - android studio-卡在刷新项目构建gradle

android - 如何在 android BottomNavigationView 上获得方形效果而不是波纹?

Android ActionBar 背景 colors.xml 不工作

Javascript 版本

java - 我的 Ubuntu 安装上的 Java 版本是 "1.8.0_191"?

android - Oreo Heads up 通知 - 如何检测/拦截用户将通知刷到状态栏?

java - 如何根据 javac -version 输出确定 JDK 版本?

android - 无法更新 VersionCode