首页 > 解决方案 > 拆分安装错误(-5):使用导航组件导航时拆分安装 API 不可用

问题描述

所以我无法在任何地方找到有关此错误的信息,并且我已经用完了谷歌搜索(因为它有 3 个匹配项)。这是我的项目https://github.com/Nikola-Milovic/Dynamicgram-AndroidApp 我通常会发布我的步骤和我尝试过的内容,但是有很多方法可以输入。我尝试了很多解决方案,遵循官方指南,但没有任何对我有用。

我正在findNavController通过底部导航图和通过底部导航图导航(均无效),我使用此运行配置

  1. 从菜单栏中选择运行 > 编辑配置。在 Run/Debug Configurations 对话框的左窗格中,在 Android App 节点下选择所需的配置。

  2. 在 Deploy 旁边的下拉菜单中,从 app bundle 中选择 APK。

  3. 在要部署的动态功能下,选中要在部署应用程序时包含的每个动态功能模块(如果有)旁边的框。单击确定。

如果有人可以克隆并检查该应用程序,或提供有关我收到的错误发生的情况的一些详细信息

I/PlayCore: UID: [10087]  PID: [29410] SplitInstallService : ServiceConnectionImpl.onServiceConnected(ComponentInfo{com.android.vending/com.google.android.finsky.splitinstallservice.SplitInstallService})
I/PlayCore: UID: [10087]  PID: [29410] SplitInstallService : linkToDeath
I/PlayCore: UID: [10087]  PID: [29410] SplitInstallService : Unbind from service.
I/PlayCore: UID: [10087]  PID: [29410] SplitInstallService : onError(-5)
I/DynamicInstallManager: Error requesting install of feature_explore: Split Install Error(-5): Split Install API is not available. (https://developer.android.com/reference/com/google/android/play/core/splitinstall/model/SplitInstallErrorCode.html#API_NOT_AVAILABLE)
W/DefaultProgressFragment: Installation failed with error -5

标签: androidkotlinandroid-navigationgoogle-play-core

解决方案


用于bundletool构建您的应用程序并创建拆分 apk。


推荐阅读