본문 바로가기

IT/안드로이드 관련

[Android] App is not indexable by Google Search; consider adding at least one Activity with an ACTION-VIEW intent filter 에러 해결방법

안녕하세요 YTS 입니다. 


요즘 Android를 개발하면서 Manifest에 App is not indexable by Google Search; consider adding at least one Activity with an ACTION-VIEW intent filter 이라는 에러를 보실수 있을텐데요!

자세한 에러내용은 아래와 같습니다.


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.

Inspection info:Adds URLs to get your app into the Google index, to get installs and traffic to your app from Google Search.  Issue id: GoogleAppIndexingWarning



이 에러는 사실 정말 간단하게 해결이 가능합니다.


우선 발생 이유는 더 많은 유입을 유도하고, 내 앱에서 어떤 컨텐츠를 많이 사용하는지 알아내기 위한 App Link Indexing 기능을 사용하라는 경고인데요!


해결방안은 바로


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


이것을 추가해주면 됩니다!!!



즉 아래 코드와 같이 런처 카테고리가 있는 부분에 추가해주시면 됩니다!!


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


>

<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=".ui.activity.IntroActivity">
<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=".MainActivity"
android:label="@string/app_name"/>
</application>

</manifest>



감사합니다 : )