Flutter Notifications Error - explicit value for android:exported when the corresponding component has an intent filter defined.
I love solving errors and then sharing how I did it, so this is when I started using a package for flutter notifications, I got this on my build pipeline.
The error
error /Users/builder/clone/android/app/src/main/AndroidManifest.xml:15:9-22:20 Error: android:exported needs to be explicitly specified for element <receiver#com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver>. 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.error /Users/builder/clone/android/app/src/main/AndroidManifest.xml:15:9-22:20 Error: android:exported needs to be explicitly specified for element <receiver#com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver>. 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.error /Users/builder/clone/android/app/src/main/AndroidManifest.xml:15:9-22:20 Error: android:exported needs to be explicitly specified for element <receiver#com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver>. 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.
Ended up going through some stack overflow questions, landing on this one.
android:exported needs to be explicitly specified for <activity>. Apps targeting Android 12 and higher are required to specify
After upgrading to android 12, the application is not compiling. It shows "Manifest merger failed with multiple errors, see logs" Error showing in Merged manifest: Merging Errors:
Error:

Solution
Upgrading flutter_local_notifications
from 8.x.x to the latest version (now is 9.3.2).
That's it, cya!
Like what you see? Check out my projects and my youtube channel, or give me a thanks on Twitter.