App is not indexable by Google Search

Recently really encounter a variety of Warning ah never met, a new project, up against the glare of the warning, for there is the code a little older is really unfriendly ah, as follows:

Warning: 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.

The official said the case:

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.

Roughly mean: For Google can access your content and applications allow users to enter your app from the search results, you must add a manifest intent filters to the relevant Activity. It allows you to connect to any depth in the Activity. For example, users can click on the deep link to view shopping application page, the page description of the product the user is searching.
Link More about Deep: the Create Deep Links to App Content

How to solve

1, intent-filter is added
in the AndroidManifest.xml file, at least one activity of the intent-filter added

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

2, ignore the warning
, add the following code in the app build.gradle:

lintOptions {  
        disable 'GoogleAppIndexingWarning'  
} 

Deeplink what's the use?
For example, when a user clicks a link in another application or web page, the APP includes Deeplink businesses can jump directly to the page corresponding goods; no Deeplink the APP can only jump to the home page, including news of the APP push and so on.

Published 59 original articles · won praise 88 · views 190 000 +

Guess you like

Origin blog.csdn.net/geofferysun/article/details/99721455