안드로이드

안드로이드 코틀린 / android:exported needs to be explicitly specified for element, targetSdkVersion 30 -> targetSdkVersion 31 변경시 에러 해결 하기

캬옹냐옹 2022. 3. 25. 12:06
728x90

안드로이드 타겟 버전을 30 에서 31로 변경했더니...으어어어...에러가 났다.

 

<activity

    android:name=".ActivitySplash"
    android:screenOrientation="portrait"> <!-- 세로 모드 -->

</activity> <!-- Splash Activity -->

메니페스트를 

<activity

    android:name=".ActivitySplash"
    android:exported="true"  
    android:screenOrientation="portrait"> <!-- 세로 모드 -->

</activity> <!-- Splash Activity -->

android:exported="true"  이걸 추가 해주니 에러가 해결됐다.

일단 에러는 해결했으니 무슨 역할을 하는지 알아봐야 겠다....으으...

 

참조: https://ddolcat.tistory.com/1065

728x90