我有警告"App is not indexable by Google Search; consider adding at least one Activity with an ACTION-VIE



更新后,以下警告出现在工作室中:" Google搜索无法索引应用;考虑添加动作视图过滤器。有关更多详细信息,请参见问题说明。更多...(Ctrl F1(»如何修复它?

我的API是28。

这是我的清单:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.omen.serverforcofe" >
    <uses-permission android:name="android.permission.NFC"/>
    <uses-feature android:name="android.hardware.nfc" android:required="true" />
    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme"
        >
        <activity
            android:name=".MainActivity"
            android:label="@string/app_name"
            android:launchMode="singleTop">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.nfc.action.NDEF_DISCOVERED" />
                <category android:name="android.intent.category.DEFAULT" />
                <data  android:mimeType="text/plain"
                    />
            </intent-filter>
        </activity>
    </application>
</manifest>

<activity
    android:name=".MyActivity"
    android:screenOrientation="portrait"
    android:label="@string/app_name">
    <intent-filter>
       <action android:name="android.intent.action.VIEW" />
    </intent-filter>
</activity>

将此意图过滤器添加到应用程序中声明的活动之一清楚地为我修复了这一点。

相关内容

最新更新