带有导航组件的Google Play即时应用程序。默认URL "https:/example.com "没有映射到您的即时应用程序。

问题描述 投票:1回答:1

我有一个已经在Google Play Store发布的即时应用程序,我已经将其迁移到导航组件。

我已经从清单中删除了意图过滤器,因为导航组件会为您添加它们。然而,Google Play却向我显示了这个错误。

The default URL “https://example.com” is not mapped to your Instant application

这是我之前的意图过滤器。

            <intent-filter android:autoVerify="true">
                <action android:name="android.intent.action.VIEW" />

                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />

                <data
                    android:scheme="https"
                    android:host="example.com"
                    />
            </intent-filter>

而这是添加了导航组件后生成的清单。

navigation merged manifest

是什么导致了Google Play的错误?

android navigation androidx android-instant-apps
1个回答
0
投票

我发现了一个类似的问题 此处.

TL:DR其中一个解决方案应该可以。

  1. 在安装App和即时App(feature-base)AndroidManifest.xml中添加默认URL。

或者,在安装App时添加默认的URL和即时的App(功能库).xml。

  1. https:/stackoverflow.coma5046292113372062。
© www.soinside.com 2019 - 2024. All rights reserved.