缺少对 Firebase App Indexing 的支持 (android lint) [英] Missing support for Firebase App Indexing (android lint)

查看:33
本文介绍了缺少对 Firebase App Indexing 的支持 (android lint)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Android Studio 上分析我的代码(分析 > 检查代码)时收到此 lint 警告.

I receive this lint warning when analysing my code (Analyse > Inspect Codes) on Android studios.

Google 搜索无法将应用编入索引;考虑添加至少一个带有 ACTION-VIEW 意图填充程序的 Activity.有关更多详细信息,请参阅问题说明.

App is not indexable by Google Search; consider adding at least one Activity with an ACTION-VIEW intent-filler. See issue explanation for more details.

这是什么警告,如何让我的应用可以被 Google 搜索索引?这听起来对 SEO 很重要,但我在 Google 上找不到任何详细信息.

What is this warning, and how do I make my app indexable by Google Search? it sounds important for SEO, but I can't find any details on Google.

我也想知道如何从android studio访问问题说明".

I also like to know how to access the "Issue Explanation" from android studio.

Google 搜索无法将应用编入索引"是旧警告.新警告是缺少对 Firebase App Indexing 的支持"

"App is not indexable by Google Search" was the old warning. The new warning is "Missing support for Firebase App Indexing"

推荐答案

我找到了如何访问问题说明".我需要将鼠标悬停在检查错误上以在线显示完整的问题说明(并按 Ctrl-F1)

I found out how to access the "Issue Explanation". I need to hover over an inspection error to display the full issue explanation inline (and pressing Ctrl-F1)

所以我缺少的关键词是深层链接"!

so the keyword I am missing is "deep links"!

以下是android开发者页面做深度链接为了让谷歌能够抓取你的应用内容并允许用户从搜索结果中进入你的应用"

The following is the android developer page to do deep links "To enable Google to crawl your app content and allow users to enter your app from search results"

http://developer.android.com/training/app-indexing/deep-linking.html

以下是有关如何进行深层链接的代码片段.我不知道 Google 如何通过添加我的应用程序来抓取我的应用程序...

the following is the code snippet on how to do a deep link. I got no idea how Google can crawl my app just by adding it though...

<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>

还有一个注释说

Note: Intent filters may only contain a single data element for a URI pattern. 
Create separate intent filters to capture additional URI patterns.

这篇关于缺少对 Firebase App Indexing 的支持 (android lint)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆