프로그래밍/안드로이드
Apps targeting Android 12 and higher 에러
do121
2023. 11. 12. 09:09
안드로이드 스튜디오를 업데이트만 하고 나면 항상 에러가 생겨서 업데이트를 별로 안하고 싶지만 Galaxy j5를 인식하지 못해서 어쩔수 없이 업데이트하고 나니 아래와 같이 에러가 발생하였다.
Manifest merger failed : Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.
찾아보니 manifest에 android:exported="true"를 추가하라고함
<manifest ... >
<activity
android:screenOrientation="portrait"
android:exported="true"
<intent-filter>