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

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/yechaoa/article/details/85088644

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中直接关闭检索:

	defaultConfig {
       .....
    }

    lintOptions {
        disable 'GoogleAppIndexingWarning'
    }

如果是国际化的app,在activity 中添加action:

	<activity android:name=".activity.MainActivity">
            <intent-filter>
                ...
                <action android:name="android.intent.action.VIEW"/>
                ...
            </intent-filter>
        </activity>

猜你喜欢

转载自blog.csdn.net/yechaoa/article/details/85088644
今日推荐