본문 바로가기

카테고리 없음

Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present' 에러

728x90
반응형

Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present' 에러 발생

 

안드로이드 프로젝트를 빌드하려고 실행시켰을 때 발생하는 이슈

 

build.gradle에서 targetsdk와 compilesdk를 현재 기준 33으로 맞춰주었을 때 발생

 

해결방법

- AndroidManifest.xml에 선언한 activity들 안에 아래 코드 삽입 


android:exported="true"

 

false로 지정해주어도 됨.

 

 

* android:exported 는 다른 어플리케이션의 구성요소로 Activity를 시작할 수 있는지 설정하는 것.

다른 앱에서 Activity를 시작 할 수 있으면 true , 없으면 false로 설정

단, intent-filter 를 설정해 준 Activity에는 false로 설정하면 안됨.

728x90
반응형