问题描述
在Android Studio上分析我的代码(分析">检查代码")时,我收到此掉毛警告.
I receive this lint warning when analysing my code (Analyse > Inspect Codes) on Android studios.
这是什么警告?如何使我的应用可被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 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开发人员页面使Google能够抓取您的应用程序内容并允许用户从搜索结果中输入您的应用程序"
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应用索引的支持(android lint)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!