Android 12를 타겟팅하는 경우에는 AndroidManifest.xml 파일에서 android:exported를 설정해주어야 한다.
기존에는 설정하지 않아도 기본으로 적용됐으나 Android 12 부터는 필수로 지정해주어야한다.
AndroidManifest.xml에서 activity android:name에 android:exported="true"추가
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.MyApplication">
<activity android:name=".MainActivity"
//이부분에 추가
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>