我有一个已经在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>
而这是添加了导航组件后生成的清单。
是什么导致了Google Play的错误?
我发现了一个类似的问题 此处.
TL:DR其中一个解决方案应该可以。
或者,在安装App时添加默认的URL和即时的App(功能库).xml。