gpt4 book ai didi

Android - 应用程序更新 list 版本代码和名称

转载 作者:太空宇宙 更新时间:2023-11-03 11:39:58 25 4
gpt4 key购买 nike

我的 Android list 文件:

我现有的版本代码 = 1

还有

我现有的版本号 = 1

我想更新我的应用程序,我知道必须更改我的版本号,例如到 1.1 但 版本代码 是什么意思?

  • 它应该保持在 1 吗?

还是我也必须更改它?也许是到 2?订购其他任何东西?

谢谢你的帮助!

最佳答案

版本代码很重要。它表示版本号。 1 = 您的 APK 的第一个版本,2 = 第二个版本等。

版本号是一个显示版本,显示主要的次要发布版本。

android:versionCode — An integer value that represents the version of the application code, relative to other versions. The value is an integer so that other applications can programmatically evaluate it, for example to check an upgrade or downgrade relationship. You can set the value to any integer you want, however you should make sure that each successive release of your application uses a greater value. The system does not enforce this behavior, but increasing the value with successive releases is normative. Typically, you would release the first version of your application with versionCode set to 1, then monotonically increase the value with each release, regardless whether the release constitutes a major or minor release. This means that the android:versionCode value does not necessarily have a strong resemblance to the application release version that is visible to the user (see android:versionName, below). Applications and publishing services should not display this version value to users.

android:versionName — A string value that represents the release version of the application code, as it should be shown to users. The value is a string so that you can describe the application version as a .. string, or as any other type of absolute or relative version identifier. As with android:versionCode, the system does not use this value for any internal purpose, other than to enable applications to display it to users. Publishing services may also extract the android:versionName value for display to users.

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

关于Android - 应用程序更新 list 版本代码和名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18900395/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com