gpt4 book ai didi

android - 版本代码和内部版本号之间的区别?

转载 作者:行者123 更新时间:2023-11-29 19:30:20 25 4
gpt4 key购买 nike

因此在 iOS(和大多数软件项目...)中,有一个增量构建号属性。在 Android 中,有一个版本代码属性。

两者有什么区别?

最佳答案

来自 documentation (强调我的):

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. For example, it could be a build number. Or you could translate a version number in "x.y" format to an integer by encoding the "x" and "y" separately in the lower and upper 16 bits. Or you could simply increase the number by one each time a new version is released.

versionCode 是 Android 中的增量构建号。

关于android - 版本代码和内部版本号之间的区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40139626/

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