zoukankan      html  css  js  c++  java
  • 新创建的项目AndroidManifast报App is not indexable by Google Search;

    原错误提示:App is not indexable by Google Search; consider adding at least one Activity with an ACTION-VIEW intent filter. See issue explanation for more details.

    Google翻译:在SDK版本23及更高版本上,您的应用数据将在应用安装时自动备份和恢复。 考虑添加属性`android:fullBackupContent`来指定`@ xml`资源,该资源配置要备份的文件。

    更多信息:https://developer.android.com/training/backup/autosyncapi.html

    官方解释:

    To enable Google to crawl your app content and allow users to enter your app from search results, you must add intent filters for the relevant activities in your app manifest. These intent filters allow deep linking to the content in any of your activities. For example, the user might click on a deep link to view a page within a shopping app that describes a product offering that the user is searching for.
    要使Google能够抓取您的应用内容并允许用户从搜索结果中进入您的应用,您必须为manifest中的相关活动添加intent filters。它们允许深入链接到您的任何活动中的内容。例如,用户可以点击深层链接以查看购物应用中的页面,该页面描述用户正在搜索的产品。

    关于deep link(墙):https://developer.android.com/training/app-links/deep-linking

    解决方法

    一、按照提示添加intent-filter

    在至少一个activity的intent-filter中添加

    <action android:name="android.intent.action.VIEW" />

    二、忽略警告

    在app的build.gradle中添加下列代码:

    lintOptions {
            disable 'GoogleAppIndexingWarning'
        }

    Deeplink有什么用

    举例来说,当用户在其他应用或网页中点击了广告时,使用了Deeplink的商家APP,可以直接跳转到相应商品的界面;而没有使用Deeplink的APP,就只能跳转到首页。包括新闻APP的推送等等。

  • 相关阅读:
    Vim基本功
    八个最常用的正则表达式
    程序员总结:帮助你早些明白一些道理
    HttpClient
    Red.Hat.Enterprise.Linux.6.2下安装vim 、OpenOffice、JDK、Eclipse
    输出打印某个对象所有属性及属性值
    Notepad++
    写博客?
    解决操作WordPress时提示输入FTP信息
    JS通过键盘点击事件实现div移动
  • 原文地址:https://www.cnblogs.com/MyXcc/p/10514579.html
Copyright © 2011-2022 走看看