【问题标题】:Warning: URL "https://instantappmodule.firebaseapp.com/" not defined in the manifest警告:清单中未定义 URL“https://instantappmodule.firebaseapp.com/”
【发布时间】:2020-07-14 12:15:21
【问题描述】:

我正在制作一个示例即时应用程序,但没有引入应用程序包和动态​​功能。我非常接近,除了我在配置上收到此错误:警告:清单中未定义 URL“https://instantappmodule.firebaseapp.com/”。

这是我的清单文件:

<?xml version="1.0" encoding="utf-8"?>

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.instantappmodule"
android:targetSandboxVersion="1">

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">

    <activity
        android:name="InstantMainActivity"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.VIEW"/>
            <category android:name="android.intent.category.DEFAULT"/>
            <category android:name="android.intent.category.BROWSABLE"/>

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

    </activity>
</application>

</manifest>

我做错了吗?

【问题讨论】:

    标签: android firebase android-manifest android-instant-apps


    【解决方案1】:

    我认为问题是您可能没有添加以下 2 行代码:

    【讨论】:

    • 我相信你忘记粘贴这些行了。
    【解决方案2】:

    应该定义为:

    <intent-filter>
            <action android:name="android.intent.action.VIEW"/>
            <category android:name="android.intent.category.DEFAULT"/>
            <category android:name="android.intent.category.BROWSABLE"/>
    
            <data
                android:host="instantappmodule.firebaseapp.com/"
                android:scheme="https" />
            <data
                android:host="instantappmodule.firebaseapp.com/"
                android:scheme="http" />
    </intent-filter>
    

    【讨论】:

    • 您可以通过将主机更改为其他内容来验证它,例如:instantappmodule.com
    • 无论网址是什么,我都会收到相同的警告
    猜你喜欢
    • 1970-01-01
    • 2014-01-31
    • 2016-01-14
    • 1970-01-01
    • 1970-01-01
    • 2022-01-15
    • 2017-05-11
    • 2022-06-18
    • 1970-01-01
    相关资源
    最近更新 更多