문제 원인
: 안드로이드 12 (API 30)을 target으로 한 App의 경우 Manifest에서 'exported' 속성을 명시해야하기 때문
해결방법
: android/app/src/main/AndroidMenifest.xml 파일에 아래와 같이 내용추가
<manifest ... >
<activity
android:name=".ui.dashboard.DashboardActivity"
android:screenOrientation="portrait"
android:exported="true"
android:theme="@style/AppTheme.Launcher">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</manifest>
: android:exported 에 대한 값 추가
※ android:exported
: 앱의 액티비티가 다른 앱의 구성요소로 시작될 수 있는지 설정
: false로 설정한 경우 해당 액티비티는 같은 앱 또는 사용자 ID가 같은 앱에서만 시작 가능
: 인텐트 필터를 사용하는 경우 false로 설정할 경우 ActivityNotFoundException 발생 가능
Refference
안드로이드 android:exported 설명
AndroidManifest.xml 파일의 activity 또는 receiver 등에 설정할 수 있는 android:exported 에 대한 설...
blog.naver.com
Android Studio error: "Manifest merger failed: Apps targeting Android 12"
I have updated my emulator version and Android SDK version to Android S (Android 12). After the update, I cannot run the project. I cannot run a Hello, World! project (empty project), but I can build
stackoverflow.com