gpt4 book ai didi

java - AndroidManifest.xml 中的应用程序无法通过谷歌搜索警告进行索引

转载 作者:行者123 更新时间:2023-12-02 09:43:33 26 4
gpt4 key购买 nike

In android projects in AndroidManifest.xml it gives the warning-- App is not Indexable by google search!

所以,

1:这是什么意思?

2:为什么会发生这种情况以及如何解决?

我已经尝试了一些(例如添加 URL),但无法正确执行这些操作,因为我不完全理解这意味着什么。

我使用的Android Studio版本是3.4.1

enter image description here

最佳答案

它将您的应用页面公开给 Google 并使其抓取您的应用内容,以便用户可以在 Google 上进行搜索并在结果中看到您的应用。

我通过将其添加到我的一项 Activity 中来忽略此警告,尽管最佳做法是为您的应用构建一个网站并将其网址作为主机:

<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

<data android:host="play.google.com"
android:pathPrefix="/store/apps/details?id=<app.package.name>"
android:scheme="https" />
</intent-filter>

更多请参见: https://www.youtube.com/watch?v=C35OSHlTNwA

关于java - AndroidManifest.xml 中的应用程序无法通过谷歌搜索警告进行索引,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56852303/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com