Google Play 中的 Android APK 大小限制
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12371302/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Android APK size limitation in Google Play
提问by Habba
Docs say that APK size limit in Google Play is 50MB, with option for two 2GB expansion APKs.
文档说 Google Play 中的 APK 大小限制为 50MB,可以选择两个 2GB 扩展 APK。
However, I can find apps in Google Play store that are beyond this 50MB limitation (Gears & Guts for example is 371MB). I can download this game straight from Google Play itself without need for external downloaders. Do they have some extra feature as Top Developer to upload APKs over 50MB, or does Google Play just hide the fact that it's downloading expansion files rather than the APK itself?
但是,我可以在 Google Play 商店中找到超过 50MB 限制的应用程序(例如,Gears & Guts 为 371MB)。我可以直接从 Google Play 下载这个游戏,不需要外部下载器。作为顶级开发者,他们是否有一些额外的功能来上传超过 50MB 的 APK,或者 Google Play 是否只是隐藏了它正在下载扩展文件而不是 APK 本身的事实?
回答by DeeV
Expansion files act kind of weird. To the user, they look like a normal app. A 50MB app with 150MB worth of expansion files will look like a 200MB download. Google Play will download the main app first. It will then download the main expansion file and then the patch expansion file. All in seemingly one lump sum.
扩展文件的行为有点奇怪。对于用户来说,它们看起来像一个普通的应用程序。具有 150MB 扩展文件的 50MB 应用程序看起来像 200MB 下载。Google Play 将首先下载主应用程序。然后它将下载主扩展文件,然后是补丁扩展文件。全部似乎是一次性的。
However, it is possible for the download to be partial. I.E., the user can finish the main app download without the expansion files. As such, you MUST implement a custom downloader in order to retrieve the remaining files on the event the initial download fails. To make things a bit more complicated, sometimes the expansion files are not included in the initial download. I don't know what causes this, but I've seen it happen on rare occasions.
但是,下载可能是部分的。IE,用户可以在没有扩展文件的情况下完成主应用程序的下载。因此,您必须实现自定义下载器,以便在初始下载失败时检索剩余文件。为了让事情变得更复杂,有时扩展文件不包含在初始下载中。我不知道是什么原因造成这种情况,但我见过这种情况在极少数情况下发生。
回答by Michael Celey
UPDATE: I just downloaded my APK again and Gears and Guts and they both show as one download but if you look at the status of the download in the status bar, it'll show that it's downloading an additional file.
更新:我刚刚再次下载了我的 APK 以及 Gears 和 Guts,它们都显示为一次下载,但如果您查看状态栏中的下载状态,它会显示它正在下载其他文件。