AndroidManifest 文件中 报错 App is not indexable by Google Search

AndroidManifest.xml 文件中 有一大块黄色,提示为:

App is not indexable by Google Search; consider adding at least one Activity weith an ACTION-VIEW intent filter. See issue explanation for more details


issue id : GoogleAppIndexingWarning
阅读 5.2k
1 个回答

如果你只是想移除warning,那么添加这行代码在mainActivity的清单里即可:

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

如果你想要深入了解并想合理化使用GoogleSearch,那么你可以查看官方文档:
https://developer.android.com...

参考:https://stackoverflow.com/que...

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题