AndroidManifest 中 application 提示: 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. less… (Ctrl F1)
基于国内的环境,可以在app的build.gradle中直接关闭检索:
代码语言:javascript复制 defaultConfig {
.....
}
lintOptions {
disable 'GoogleAppIndexingWarning'
}
如果是国际化的app,在activity 中添加action:
代码语言:javascript复制 <activity android:name=".activity.MainActivity">
<intent-filter>
...
<action android:name="android.intent.action.VIEW"/>
...
</intent-filter>
</activity>