Manifest merger failed: Apps targeting Android 12 and higher are required to specify an explicit value for when the corresponding component has an intent filter defined. If you have seen the above error it’s what we are going to discuss.
If you are running your Apps targeting Android 12 and higher you are required to specify an explicit value for “android: exported”.
To fix the above error, you will need to declare the “android: exported” value in your manifest file depending on your requirements.
Android to the android studio here “android: exported” sets whether this activity can be launched by a component of other applications.
If true “android: exported= true” it means the activity is accessible to any app and can be launched by its exact class name.
if false “android: exported = false” it means the activity can be launched only by the components of the same application with the same user ID, or privileged system components.
The default value is false if no intent filter.
android:exported = "false"
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />