Manifest merger failed : android:exported needs to be explicitly specified for . 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.
There are no <services
in my app’s AndroidManifest.xml
file, I also looked for each AndroidManifest.xml
file and they also don’t have any <service
element, so why am I getting this error?
There are no errors in my merged manifest tab, however, the first manifest has two <receiver
and I’ve already added android:exported
property manually in them.
2
Answers
Try adding
android:exported = false
prandroid:exported = true
in your own manifest file and compile the code. I hope this should solve you issue. As adding manually in notification will not work.In
app
->src
->main
->AndroidManifest.xml
you need to explicitly add the Tag ofandroid:exported="true"
in each<Activity>
under<Application>
See the Activity Tag in the code…
Currently i am doing it with each activity as that was the error given by Android studio but maybe there is a better way to add it only once somewhere in the code.