Please help me with this error getting in my project while trying to run at mobile via android studio.
Manifest merger failed : 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.
9
Answers
Add this to your manifest to the activity tag in the error message:
This happens when your activity can be started by another application. For example image viewer can be started by file manager when clicking an image. The image viewer app is "exported".
It’s also always required if you are using the following code necessary for dynamic links:
Example:
Add android:exported="true" into the Manifest file inside of the application activity
If you have any activity, service, receiver, or provider that does not have exported set in your manifest file then add whenever it needed like,
You had to figure out the component missing the Android exported tag.
You should downgrade your SDK version and check the final merged manifest file for the components missing the exported tag but has IntentFilter.
The step-by-step instructions is provided in this link.
I found this solution!!.
So you have to add the
android:exported="true"
into the activity tag in the manifest (not in the application).To see more information about the exported property, see App manifest file activity
🙂
if you are using flutter ,may some deprecated lib in your ap is causing this ..
for me: upgrading
flutter_local_notifications
to the latest version (now is 9.3.2) solved this error..This is for the projects using Bootsplash.
My project used Bootsplash and I solved it by adding
android:exported="true"
also to the activity of Bootsplash in the AndroidManifest file.I had to add
android:exported="true"
In all the tags where intent-filter was present
For me they were
receiver
service
activity
I faced this issue while upgrading my React Native app to v12.
as I was facing a crash upon receiving the notification.
if you just add local notification package, and that error appear try to make your
add those line which are absent in your file, then run
NOTE: This is based much for problem caused by flutter_local_notification package
am using flutter_local_notifications: ^8.2.0