简体   繁体   English

我可以在 alpha 测试通道的生产中使用较低版本的代码吗

[英]Can I have a lower version code at production from alpha testing channel

I need to publish my application first at alpha testing channel at play developer console and then to production.我需要先在 Play 开发者控制台的 alpha 测试频道发布我的应用程序,然后再发布到生产环境。 Lets say that I publish the application at alpha with version code 1.0.0.假设我以 alpha 版本发布应用程序,版本代码为 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.0.1、1.0.2 等。

  1. After I finish testing, can I upload a new apk to production with an initial version code 1.0.0?完成测试后,我可以使用初始版本代码 1.0.0 将新的 apk 上传到生产环境吗? I don't want to promote the apk published at the alpha channel that will have an increased version code ie 1.0.5.我不想宣传在 alpha 频道发布的 apk 会增加版本代码,即 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.在 Android 中,应用程序版本控制包括两件事。

  1. android:versionCode - An integer value that represents the version of the application code, relative to other versions. android:versionCode - 一个整数值,表示应用程序代码相对于其他版本的版本。
  2. android:versionName — A string value that represents the release version of the application code, as it should be shown to users. android:versionName — 一个字符串值,表示应用程序代码的发布版本,因为它应该向用户显示。

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, eg android:versionName="1.0.0" , android:versionCode=5 (the production is the 5th update from your initial aplha deploy).因此,您可以使用 alpha 版本,其中android:versionName"1.0.0"android:versionCode1 (整数),然后进行测试和修复,当您准备好在生产中部署时,将android:versionName保持为"1.0.0"android:versionCode它在 alpha 中的最后一个值增加了1 ,例如android:versionName="1.0.0" , android:versionCode=5 (生产是您最初的 aplha 部署的第 5 次更新)。 Of course you can change "1.0.0" to whatever you like, you can lower it too eg "0.9.0" , it's android:versionCode that always should be incremented by 1 .当然,您可以将"1.0.0"更改为您喜欢的任何内容,也可以降低它,例如"0.9.0" ,它的android:versionCode始终应增加1

You can read more here: Versioning Your Applications您可以在此处阅读更多信息: 版本控制您的应用程序

Version codes need only to be unique.版本代码只需是唯一的。 As per document system does not enforce that new apk should have a greater version code.根据文档系统不强制要求新的 apk 应该具有更大的版本代码。

Though a device, having installed an apk with a higher version code (17 in your case) will neither get update notification from play store nor play store will show that an update is available, because apk has a lower version code (10 in your case).尽管安装了具有较高版本代码(在您的情况下为 17)的 apk 的设备不会从 Play 商店收到更新通知,Play 商店也不会显示更新可用,因为 apk 的版本代码较低(在您的情况下为 10 )。 It does not matter that v10 is uploaded after v17.在v17之后上传v10没有关系。

Yes!是的! Just yesterday I had versionCode 701 in the Alpha lane and wanted to publish a Beta from a different branch.就在昨天,我在 Alpha 通道中有versionCode 701,并想从不同的分支发布 Beta。 The Alpha includes some features that are only available to our team, and the beta is a public Beta that doesn't have all the Alpha features merged in yet. Alpha 版包含一些仅对我们团队可用的功能,而 Beta 版是公开 Beta 版,尚未合并所有 Alpha 版功能。

I hadn't used versionCode 700 yet, so I pushed that to the beta lane and it was accepted by the play store.我还没有使用versionCode 700,所以我把它推到了 beta 通道,它被 Play 商店接受了。

So, now, versionCode 700 is available for download to Beta testers, while versionCode 701 is in Alpha, and the Alpha version (701) was uploaded BEFORE the Beta version (700).因此,现在, versionCode 700 可供 Beta 测试人员下载,而versionCode 701 处于 Alpha 状态,并且 Alpha 版本 (701) 是在 Beta 版本 (700) 之前上传的。

It seems like what matters is if the versionCode has been used yet.似乎重要的是versionCode是否已被使用。 Hopefully that helps!希望这有帮助!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当版本代码似乎高于生产时,“被生产取代”会阻止测试 Android Xamarin 应用程序的 Alpha 版本 - "Superseded by production" prevents testing of Alpha release of Android Xamarin app when version code appears to be higher than production 在 Play 商店中将应用发布为生产版本之前,无法启动 alpha/内部 android 测试 - Can not start alpha/internal android testing before publishing app as production version in Play Store 如何从Google Play控制台中删除带有高版本代码的Alpha版本? - How can i remove my alpha version with high version code from Google Play Console? 我可以从Google Play中删除alpha测试中发布的应用吗? - Can I delete published app in alpha testing from google play? 即使没有Alpha通道,如何将PNG文件加载为ARGB_8888? - How can I load PNG-Files as ARGB_8888 even if they have no alpha channel? 我可以同时在同一产品中使用2个apk吗? - can i have 2 apks of same application one in prod and one in alpha channel simultaneously Android应用程式的Beta / Production和Alpha版本码不同 - Android app different version code for beta/production and alpha 将APK从Alpha测试迁移到Google Play中的生产 - Move apk from alpha testing to production in google play 在Alpha测试中删除APK,以上传具有相同版本代码的其他APK - Delete apk in alpha testing to upload a different one with same version code 我可以在Playstore中将应用程序从生产降级到beta测试 - can i downgrade app from production to beta testing in Playstore
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM