android - 如何通过 App Bundle 使用 Android 扩展文件?

标签 android app-bundle android-app-bundle

我正在使用 App Bundle 开发应用。

问题是我需要在应用程序中添加一个大的视频资源文件。 我首先想到的是流式传输视频,但目前还不可能。 所以我必须第一次下载它并保留它直到有更新。 我发现使用扩展文件是解决这个问题的合适方法。 经过一番努力,我发现 Google Play 控制台没有显示为 App Bundle 添加扩展文件。

有没有人能回答这个问题? 也许动态交付可以解决这个问题?

enter image description here

谢谢。

最佳答案

虽然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 扩展文件。

关于android - 如何通过 App Bundle 使用 Android 扩展文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54001690/

相关文章:

objective-c - 您如何引用打包在您的应用程序包中的 shell 脚本?

android - android.content.ActivityNotFoundException :

android - 如何将 ExpandableListview 左图标更改为其他图标(android ExpandableListView)

java - 构建gradle失败。 Facebook取消后在 list 中失败

android - 致命异常 : main, android

java - 用于 DMG 背景的自定义插入式图标,用于 MacOSX 上的应用程序打包

android - 构建android应用程序包时如何修复 'Title for on-demand module is missing'?

android-studio - Android Studio 不会生成签名的 aab

android - 如何在 Android 原生应用中添加 Power BI 报表