简体   繁体   English

在Google Play上管理多个.apks

[英]Manage multiple .apks on Google Play

We create apps and distribute the on Google Play and have gone years being able to create one .apk and distribute to all devices. 我们创建应用程序并在Google Play上分发它们,并且已经能够创建一个.apk并分发到所有设备已经有很多年了。

Recently we found one device (Samsung Galaxy Core Prime SM-G360V Android version: 5.1.1) that we will need to make a special build. 最近,我们发现需要进行特殊构建的一种设备(三星Galaxy Core Prime SM-G360V Android版本:5.1.1)。

It is probably possible to find something that will work on all devices, but I just don't want to force my thousands of users to update their app just because of one phone. 可能会找到可以在所有设备上使用的功能,但是我只是不想强迫我的成千上万的用户仅仅因为一部手机而更新他们的应用程序。

I have read this: https://support.google.com/googleplay/android-developer/answer/7353455?hl=en 我已阅读以下内容: https : //support.google.com/googleplay/android-developer/answer/7353455?hl=zh-CN

and I have read this: https://developer.android.com/google/play/publishing/multiple-apks 而且我已经读过: https : //developer.android.com/google/play/publishing/multiple-apks

They don't really go over a strategy for doing what we want to do: 他们并没有真正考虑做我们想做的事情的策略:

  1. Leave our existing .apk in the store and keep the 5.1.1 device from downloading it. 将我们现有的.apk保留在商店中,并禁止5.1.1设备下载它。
  2. Add a new .apk that only the 5.1.1 device will download. 添加仅5.1.1设备将下载的新.apk。

One element of my concern is that the instructions talk about a list of excluded phones but they don't talk about a list of supported phones. 我关注的一个因素是,这些说明只讨论了被排除在外的电话的列表,但没有提及所支持的电话的列表。

I would like to exclude a phone on our existing .apk; 我想在我们现有的.apk中排除电话; and set a supported phone on the new .apk (implying that all other devices are excluded). 并在新的.apk上设置受支持的电话(这意味着排除了所有其他设备)。

This is also making changes to a production app without really being able to test so we have to have clear instructions of the side effects of anything we are changing on Google Play. 这也会在无法真正进行测试的情况下对生产应用进行更改,因此我们必须清楚说明在Google Play上所做的任何更改的副作用。

Using a whole APK variant for a single device is pretty unusual. 对于单个设备使用整个APK变体是非常不寻常的。 Much more common reasons for using Multiple APKs are: 使用多个APK的更多常见原因是:

  • having an old version for older phones on old SDKs, and new versions for newer phones 在旧的SDK上具有用于旧手机的旧版本,并在较新的手机上具有新版本
  • having different versions for different native libraries 不同的本机库具有不同的版本
  • having different versions for different densities of assets 具有针对不同资产密度的不同版本

For all of these use cases developers are now encouraged to use the Android App Bundle rather than publishing multiple APKs. 对于所有这些用例,现在鼓励开发人员使用Android应用程序捆绑包,而不要发布多个APK。

To be honest, if you are only doing the change for one phone I'd encourage a single "if" statement in the code. 老实说,如果您只为一部手机进行更改,则建议在代码中使用单个“ if”语句。 It's a pain for users to get an update, you are right, but if the change is small, Google Play patching and compression should keep the update size pretty small. 没错,用户获得更新很痛苦,但是,如果更改很小,则Google Play补丁和压缩应使更新大小保持很小。

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

相关问题 在Google Play中发布多个APK - Publish multiple apks in google play 将多个APK发布到Google Play商店 - Publish Multiple APKs to Google Play Store 是否可以使用Fastlane将不同应用的多个APK发布到Google Play? - Is it possible to publish multiple APKs of different apps to Google Play using Fastlane? 无法在 Google Play Developer Console 上上传针对多个 CPU 架构的多个 APK - Cannot upload multiple APKs targeting multiple CPU architectures on Google Play Developer Console 保留在 Google Play Developer Console 中的 APK - APKs to retain in Google Play Developer Console 我可以在不使用android NDK的情况下将多种架构的APK上传到Google Play商店吗? - Can I upload apks for multiple architectures into the Google Play store without using the android NDK? 多个APK,适用于Google TV和Android手机/平板电脑的Play商店上的单个应用列表 - Multiple apks, single listing of app for Google TV and Android Phone/Tablet on Play Store 模块化Android应用程序-在Google Play中隐藏子APK - Modular android application - hide sub-APKs in Google Play Android:Google Play是否检查已安装的APK的versionCode? - Android: Does Google Play check versionCodes of installed apks? 高度相似的代码 apk 在不同国家发布 发布 google play - highly similar code apks are released in different countries release google play
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM