我是否可以从alpha测试频道获得较低的版本代码 [英] Can I have a lower version code at production from alpha testing channel

查看:161
本文介绍了我是否可以从alpha测试频道获得较低的版本代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要首先在玩游戏开发者控制台的alpha测试频道上发布我的应用程序,然后再发布到产品。比方说,我发布了alpha版本的应用程序,版本号为1.0.0。在测试之后,我需要发布应用程序的更新,以便将版本代码增加到1.0.1,1.0.2等。


  1. 完成测试后,我可以上传一个新版本的apk到初始版本代码1.0.0吗?我不想推广在Alpha版本中发布的apk版本,即1.0.5版本。是否会引起任何问题?

  2. ol>

    谢谢,

    Lupe

    解决方案

    在Android中,应用程序版本控制由两部分组成。

    lockquote


    1. android:versionCode - 一个整数值,表示应用程序代码相对于其他版本的版本。

    2. android:versionName - 表示应用程序代码发布版本的字符串值,因为它应显示给用户。


    用户的可见第二个。所以你可以在例如一个alpha版本中,其中 android:versionName 1.0.0 android:versionCode 1 (integer),然后进行测试和修复,当您准备在生产环境中进行部署时,请保留 android:versionName 1.0.0但是 android:versionCode 从它在alpha中的最后一个值增加了 1 ,例如 android:versionName =1.0.0, android:versionCode = 5 初始aplha部署)。当然,您可以将1.0.0更改为您喜欢的任何内容,您也可以将其降低,例如0.9.0,它的 android:versionCode 总是应该增加 1



    您可以在这里阅读更多信息:版本控制你的应用程序


    I need to publish my application first at alpha testing channel at play developer console and then to production. Lets say that I publish the application at alpha with version code 1.0.0. After testing it, I need to publish updates of the application so I increase the version code to 1.0.1, 1.0.2, etc.

    1. After I finish testing, can I upload a new apk to production with an initial version code 1.0.0? I don't want to promote the apk published at the alpha channel that will have an increased version code i.e. 1.0.5. Will that cause any issues?

    2. Do you have any other recommendation how to handle this case?

    Thanks,

    Lupe

    解决方案

    In Android, application versioning consists of two things.

    1. android:versionCode - An integer value that represents the version of the application code, relative to other versions.
    2. android:versionName — A string value that represents the release version of the application code, as it should be shown to users.

    What is visible to the users is the second one. So you can have for example a version in alpha where android:versionName is "1.0.0" and android:versionCode is 1 (integer), then do your testing and fixes and when you are ready to deploy in production keep android:versionName to "1.0.0" but have android:versionCode increased by 1 from the last value it had in alpha, e.g. android:versionName="1.0.0", android:versionCode=5 (the production is the 5th update from your initial aplha deploy). Of course you can change "1.0.0" to whatever you like, you can lower it too e.g. "0.9.0", it's android:versionCode that always should be incremented by 1.

    You can read more here: Versioning Your Applications

    这篇关于我是否可以从alpha测试频道获得较低的版本代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆