App is not indexable by Google Search; consider adding at least one Activity with an ACTION-VIEW ...

【声明:】本文是作者(蘑菇v5)原创,版权归作者 蘑菇v5所有,侵权必究。本文首发在。如若转发,请注明作者和来源地址!未经授权,严禁私自转载!

一、错误信息:

错误信息

二、解决办法:

方法1.根据提示,在activity中添加
  

App is not indexable by Google Search; consider adding at least one Activity with an ACTION-VIEW ..._第1张图片
解决办法

或者

方法2.忽略警告

appbuild.gradle中添加下列代码:

lintOptions {  
        disable 'GoogleAppIndexingWarning'  
} 
App is not indexable by Google Search; consider adding at least one Activity with an ACTION-VIEW ..._第2张图片
忽略警告

stackoverflow


官方文章

注: 科学访问)

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.

Using this link Enabling Deep Links for App Content you'll see how to use it.

And using this Test Your App Indexing Implementation how to test it.

The following XML snippet shows how you might specify an intent filter in your manifest for deep linking.


    
        
        
        
        
        
        
        
        

    

To test via Android Debug Bridge

$ adb shell am start
        -W -a android.intent.action.VIEW
        -d  

$ adb shell am start
        -W -a android.intent.action.VIEW
        -d "example://gizmos" com.example.android

你可能感兴趣的:(App is not indexable by Google Search; consider adding at least one Activity with an ACTION-VIEW ...)