skip to Main Content

PS D:chat appchatapp_firebasechatapp_firebase> flutter run
Launching libmain.dart on CPH2363 in debug mode…
Parameter format not correct –
D:chat appchatapp_firebasechatapp_firebaseandroidappsrcdebugAndroidManifest.xml:15:9-22:20 Error:
android:exported needs to be explicitly specified for element <receiver#com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceive
r>. 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.ScheduledNoti
ficationBootReceiver>. 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.

BUILD FAILED in 26s
Running Gradle task ‘assembleDebug’… 27.8s
Exception: Gradle task assembleDebug failed with exit code 1

plz help me with what to do

2

Answers


  1. Probably a duplicated question. You can read some possible solutions here.

    You can also go to the folder androidappbuild.gradle and set the miSdkVersion and the targetSdkVersion to 30.

      defaultConfig {
        ...
        minSdkVersion 30
        targetSdkVersion 30
        ...
    
    Login or Signup to reply.
  2. The error says

    Apps targeting Android 12 and higher are required to specify an
    explicit value for android:exported

    Add the below to your android manifest:

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

    The above sets the exported value for the local notification receiver. That should fix it.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search