
我现有的版本代码= 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 – 应用更新清单版本代码和名称全部内容,希望文章能够帮你解决Android – 应用更新清单版本代码和名称所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)