close

[Solved] 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

Hello Guys, How are you all? Hope You all Are Fine. Today I Just Updated my Emulator and android SDK and just after the update I am not able to run my simple hello world project Now and I am facing the following error 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 in java. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How 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 Error Occurs ?

I Just Updated my Emulator and android SDK and just after the update I am not able to run my simple hello world project Now and I am facing the following error.

***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.***

How To Solve 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 Error ?

  1. How To Solve 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 Error?

    To Solve 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 Error To run your apps on Android 12 You just need to specify android:exported=”false” or android:exported=”true”. And your manifest will look like

  2. 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

    To Solve 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 Error To run your apps on Android 12 You just need to specify android:exported=”false” or android:exported=”true”. And your manifest will look like

Solution 1: Specify android:exported=”false” or android:exported=”true” in androidmenifest

To run your apps on Android 12 You just need to specify android:exported="false" or android:exported="true". And your manifest will look like

<activity
          android:name=".MainActivity"
          android:exported="true"
          android:theme="@style/Theme.MyApplication.NoActionBar">
          <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
          </intent-filter>
    </activity>

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also Read

Please Rate Our Solution to Motivate Us For Give Our Best

Leave a Comment