如何通过 App Bundle 使用 Android 个扩展文件?
How can I use Android expansion files using App Bundle?
我正在使用 App Bundle 开发应用。
问题是我需要在应用程序中添加一个大的视频资源文件。
我首先想到的是流式传输视频,但目前还不可能。
所以我必须第一次下载它并保留它直到有更新。
我发现使用扩展文件是解决这个问题的合适方法。
经过一番努力,我发现 Google Play 控制台没有显示为 App Bundle 添加扩展文件。
有人对此有答案吗?
也许动态交付可以解决这个问题?
谢谢。
而 App Bundle Known Issues 包括:
Android App Bundles do not support APK expansion files. However, Google Play still requires that app downloads be 100MB or less. So, for example, when first installing your app, the total size of your base APK and its configuration APKs must equal 100 MB or less. Similarly, the total size of any dynamic feature APK and its configuration APKs must be 100 MB or less. After uploading your app bundle, the Play Console warns you if your app bundle results in APKs that violate this restriction.
Playtime 2018 blog post 声明这将在未来发生变化:
Improved support for large apps: you can now upload large app bundles with installed APK sizes of up to 500MB without needing to use expansion files. This feature is in early access and we will roll it out to all developers in the future.
看来,如果您需要大小超过 100MB 的 APK,则需要等待 500MB 应用程序包支持推出到您的开发者帐户。如果您的视频和 APK 已经小于 100MB,您现在应该可以直接上传并完全跳过使用 APK 扩展文件。
我正在使用 App Bundle 开发应用。
问题是我需要在应用程序中添加一个大的视频资源文件。 我首先想到的是流式传输视频,但目前还不可能。 所以我必须第一次下载它并保留它直到有更新。 我发现使用扩展文件是解决这个问题的合适方法。 经过一番努力,我发现 Google Play 控制台没有显示为 App Bundle 添加扩展文件。
有人对此有答案吗? 也许动态交付可以解决这个问题?
谢谢。
而 App Bundle Known Issues 包括:
Android App Bundles do not support APK expansion files. However, Google Play still requires that app downloads be 100MB or less. So, for example, when first installing your app, the total size of your base APK and its configuration APKs must equal 100 MB or less. Similarly, the total size of any dynamic feature APK and its configuration APKs must be 100 MB or less. After uploading your app bundle, the Play Console warns you if your app bundle results in APKs that violate this restriction.
Playtime 2018 blog post 声明这将在未来发生变化:
Improved support for large apps: you can now upload large app bundles with installed APK sizes of up to 500MB without needing to use expansion files. This feature is in early access and we will roll it out to all developers in the future.
看来,如果您需要大小超过 100MB 的 APK,则需要等待 500MB 应用程序包支持推出到您的开发者帐户。如果您的视频和 APK 已经小于 100MB,您现在应该可以直接上传并完全跳过使用 APK 扩展文件。