求助アプリはGoogle検索でインデックスに登録できません。ACTION-VIEWで少なくとも1つのアクティビティを追加することを検討してください

 

ASのアップグレード後、元のコードでレポートが生成されます:アプリはGoogle検索でインデックスに登録できません。ACTION-VIEW警告のあるアクティビティを少なくとも1つ追加することを検討してください。

公式ドキュメントから:

Googleがアプリのコンテンツをクロールできるようにして、ユーザーが検索結果からアプリを入力できるようにするには、アプリマニフェストで関連するアクティビティのインテントフィルターを追加する必要があります。これらのインテントフィルターを使用すると、任意のアクティビティのコンテンツにディープリンクできます。たとえば、ユーザーがディープリンクをクリックして、ユーザーが検索している商品を説明するショッピングアプリ内のページを表示する場合があります。

解決策は2つです。

1、上記のヒントに従って、ディープリンクを追加し、アクティビティに次のコードを追加します。

<activity
    android:name="com.example.android.GizmosActivity"
    android:label="@string/title_gizmos" >
    <intent-filter android:label="@string/filter_title_viewgizmos">
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <!-- Accepts URIs that begin with "http://www.example.com/gizmos” -->
        <data android:scheme="http"
              android:host="www.example.com"
              android:pathPrefix="/gizmos" />
        <!-- note that the leading "/" is required for pathPrefix-->
        <!-- Accepts URIs that begin with "example://gizmos”
        <data android:scheme="example"
              android:host="gizmos" />
        -->
    </intent-filter>
</activity>

2番目の方法は、アプリのbulid.gradleファイルに次のコード行を追加して、検索機能をオフにすることです。

defaultConfig {
///////////。。。。。。。。。。。。。。。。///////
}
lintOptions {
    disable 'GoogleAppIndexingWarning'
    baseline file("lint-baseline.xml")
}
//////。。。。。。。。。。。。。。//////
}

 https://stackoverflow.com/questions/34173545/missing-support-for-firebase-app-indexing-android-lint

10件の元の記事を公開 11のように 20,000以上の訪問

おすすめ

転載: blog.csdn.net/u013323018/article/details/82835241