App is not indexable by Google Searchの対処方法
本稿ではAndroidManifest.xmlでApp is not indexable by Google Search~
のエラーが発生した場合の対処方法を解説致します。
App is not indexable by Google Searchとは?
AndroidManifest.xmlにACTION-VIEWインテントフィルタを使用していない場合に発生するWarningです。
Warningのため対応しなくてもアプリ自体は動作しますが、
ACTION-VIEWインテントフィルタを使用していないと、アプリがGoogle検索にインデックスされなくなるため対処しましょう。
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. さらに… (Ctrl+F1)
Inspection info:Adds URLs to get your app into the Google index, to get installs and traffic to your app from Google Search.
App is not indexable by Google Searchの対処方法
AndroidManifest.xmlにACTION-VIEWインテントフィルタを付与します。
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.e.hogehoge"> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name=".ListActivity" android:label="@string/app_name" android:theme="@style/AppTheme"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.VIEW"/> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name=".hogehogeActivity"></activity> </application> </manifest>
スポンサーリンク