首页 > 解决方案 > 无法发布免安装应用:您应该至少有一个通过网络“intent-filter”映射到站点“example.com”的活动 APK

问题描述

我收到此错误:

您应该至少有一个通过网络“intent-filter”映射到站点“www.example.org”的活动 APK

我刚刚意识到我的免安装应用清单中有这个:

<intent-filter android:autoVerify="true" android:order="2" >
    <action android:name="android.intent.action.VIEW" />
    <data android:host="www.example.org" />
    <data android:scheme="http" />
    <data android:scheme="https" />
    <data android:pathPrefix="/welcome" />
</intent-filter>

<meta-data
    android:name="default-url"
    android:value="https://www.example.org/welcome" />

但在我的 APK 清单中:

<activity>
    <intent-filter android:autoVerify="true">
        <!-- ... -->
        <data android:scheme="https" android:host="app.example.org" />
    </intent-filter>

</activity>

清单中的前缀差异可能www/app是导致此错误的原因吗?我想在发布另一个版本的应用程序之前确定这一点。

谢谢你的帮助。

标签: androidandroid-instant-apps

解决方案


推荐阅读