App is not indexable by Google Search; consider adding atleast one Activity with an Action-View intent-filter.

Please Share On:

You are new in the android studio. And you are trying to create your first application, but you faced “App is not indexable by Google Search; consider adding at least one Activity with an Action-View intent-filter” error message display to your screen when you tried to build successfully.

It would be so good if no error occurs but it won’t happen in a real working environment. If you see an error it is better to fix asap otherwise the small error will be very hard to fix later and you might waste your lots of time.

Now, I am going to tell you how to fix the above error. The answer is quite simple you just need to add few lines of codes in your app projects. That’s it.

Now, You need to follow the below steps carefully to fix the above error message.

Step 1: Open your AndroidManifiest.xml file and add the below code inside your activity. Project -> App -> src -> Main -> AndroidManifest.xml

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

The AndroidManifest.xml looks like this after adding the above code. I am copying and pasting my current working android app project.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.geetaregmi.citizenshipTest"

       <application
        android:allowBackup="true"
        android:icon="@mipmap/citizenship_icon"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        android:fullBackupContent="true">

        <activity
            android:name="com.geetaregmi.citizenshipTest.MainActivity"
            android:label="@string/app_name"
            android:theme="@style/AppTheme.NoActionBar">

            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

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

    </application>

</manifest>

That’s all you need to do. Now built your application again. The previous error message will be disappear now.



Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright @2023. All Right Reserved.


Social media & sharing icons powered by UltimatelySocial