android:exported needs to be explicitly specified for element <receiver#com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver>

Viewed 68

Launching lib\main.dart on sdk gphone64 x86 64 in debug mode... lib\main.dart:1 C:\Users\lucks\OneDrive\Desktop\intern\android\app\src\debug\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.

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':app:processDebugMainManifest'.

Manifest merger failed : 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.

  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

BUILD FAILED in 2s Exception: Gradle task assembleDebug failed with exit code 1 Exited (sigterm)

Image link is here https://i.stack.imgur.com/bUkHi.png I dont have that "flutterlocalnotifications" receiver in my manifest. So where do i add that explicit value???

1 Answers

Try adding this in AndroidManifest.xml. Inside <application> .... </application> tag.

   <receiver android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver"
              android:exported="true">   
    </receiver> 
Related