我们可以为现有应用程序创建即时android应用程序吗?

时间:2019-02-11 11:20:59

标签: android android-instant-apps

我在Google Playstore中已有一个Android应用程序。该应用程序的大小约为38MB。经过大量优化并使用远程资源和Web图像格式后,APK降至约25MB。

为了创建Instant Android应用程序,我们需要将应用程序分解为多个模块,而常见的内容将包含在基本模块中。如果我以此为基础分离我的应用程序,我认为我的每个模块将小于4MB。但是,完整的捆绑包本身约为20MB以上。

从我读过的书the instant app size must not exceed 4MB开始。就我而言,即时应用程序小于4MB,但整体捆绑包很大。

我的问题是,在模块大小和即时应用程序小于4 MB,但整个Bundle大小为20MB +的情况下,我们能否在Play商店上使用即时应用程序呢?

1 个答案:

答案 0 :(得分:2)

根据文档

  

要立即启用应用程序捆绑包,所有即时模块中的代码和资源的总下载大小必须最大为10 MB。

但是

  

当您使用Google Play的内部测试轨道时,Play控制台不会应用Google Play Instant概述中讨论的大小限制。因此,即使大于10 MB,您也可以测试并在内部展示即时体验。

请参见https://developer.android.com/topic/google-play-instant/overviewhttps://developer.android.com/topic/google-play-instant/getting-started/instant-enabled-app-bundle

https://developer.android.com/topic/google-play-instant/guides/reduce-module-size?tenant=irina可以帮助您减小应用大小。

结论::如果所有模块和资源的总大小为20MB,那么看来使您起作用的唯一解决方案是减小大小。