android studio에서 실행한 앱이 설치되지 않을 때

2022. 11. 6. 00:07·Android

최근 개발중인 사이드 프로젝트 앱에서 안드로이드 스튜디오를 통해 앱을 실행할 경우, 실행은 되지만 앱이 설치가 되지않는 현상이 있었다. 

 

실행은 잘 됐는데

 

목록에는 없다...

 

해당 이슈의 원인은 바로! AndroidManifest 파일에 있었는데

        <activity
            android:name=".ui.main.MainActivity"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.LAUNCHER" />
                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>

                <data
                    android:host="oauth"
                    android:scheme="kakao"/>
            </intent-filter>

            <meta-data
                android:name="android.app.lib_name"
                android:value="" />
        </activity>

위의 인텐트 필터를 보면 MAIN, LAUNCHER와 함께 여러 값들이 있는데, MAIN, LAUNCHER에는 데이터 태그를 처리할 수 없다고 한다... 그래서 아래처럼 인텐트 필터를 분리시켜주면 된다고 한다.

        <activity
            android:name=".ui.main.MainActivity"
            android:exported="true">
                        <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.BROWSABLE"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <data
                    android:host="oauth"
                    android:scheme="kakao"/>
            </intent-filter>

            <meta-data
                android:name="android.app.lib_name"
                android:value="" />
        </activity>

 

이제 다시 설치해보자!!

정상적으로 앱이 설치된걸 확인했다.

 

Reference :

https://stackoverflow.com/questions/20285496/android-application-installed-but-wont-open-on-device

 

Android Application Installed but won't open on device

I created an application on Android. I am developing it on eclipse with ADT. It is about nfc. For the moment it only reads and writes tag. I run my application on my mobile device for testing and...

stackoverflow.com

 

'Android' 카테고리의 다른 글

manifestPlaceholders가 값을 찾지 못할 때 해결방법  (0) 2022.11.27
Error inflating class com.google.android.material.bottomnavigation.BottomNavigationView  (0) 2022.11.13
error: [Dagger/MissingBinding] @dagger.hilt.android.qualifiers.ActivityContext android.content.Context cannot be provided without an @Provides-annotated method. public abstract static class SingletonC implements ArtOnApplication_GeneratedInjector,  (0) 2022.11.05
Android WebView 테스트 샘플 앱 개발 - 2  (0) 2022.10.22
Android WebView 샘플 앱 개발 - 1  (0) 2022.10.22
'Android' 카테고리의 다른 글
  • manifestPlaceholders가 값을 찾지 못할 때 해결방법
  • Error inflating class com.google.android.material.bottomnavigation.BottomNavigationView
  • error: [Dagger/MissingBinding] @dagger.hilt.android.qualifiers.ActivityContext android.content.Context cannot be provided without an @Provides-annotated method. public abstract static class SingletonC implements ArtOnApplication_GeneratedInjector,
  • Android WebView 테스트 샘플 앱 개발 - 2
HWBB
HWBB
흥미주도개발자
  • HWBB
    코딩공부방
    HWBB
  • 전체
    오늘
    어제
    • 분류 전체보기 (164)
      • 알고리즘 (61)
      • Android (27)
      • Kotlin (0)
      • Java (2)
      • Design Pattern (2)
      • React Native (1)
      • Python (0)
      • TIL (21)
      • Unity (0)
      • React (2)
      • AWS (0)
      • Git (11)
      • MFC (1)
      • Spring (4)
      • Computer Science (4)
      • Vue (4)
      • Infra (6)
      • 박현우 (10)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

    • 승윤이
  • 공지사항

  • 인기 글

  • 태그

    코틀린
    깃허브
    자바
    Java
    baekjoon
    github
    GIT
    coding
    Kotlin
    Android
    백준
    안드로이드
    AWS
    코딩테스트
    알고리즘
    프로그래머스
    안드로이드 스튜디오
    algorithm
    android studio
    programmers
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
HWBB
android studio에서 실행한 앱이 설치되지 않을 때
상단으로

티스토리툴바