Software⏱️ 2 min read📅 2026-05-31

How to Fix: Android Studio error: "Manifest merger failed: Apps targeting Android 12"

Android Studio error: Manifest merger failed due to Android version mismatch. Update project structure and manifest file to target Android 12.

Quick Answer: Update project structure and manifest file to specify an explicit value for android:exported, then try running the project again.

The error 'Manifest merger failed: Apps targeting Android 12 and higher are required to specify an explicit value for android:exported' occurs when the manifest file of your project is not properly configured for the new Android version. This can be due to the incorrect usage of the android:exported attribute in the AndroidManifest.xml file.

🛑 Root Causes of the Error

  • The android:exported attribute is not specified correctly in the AndroidManifest.xml file.

🔧 Proven Troubleshooting Steps

Method 1: Update AndroidManifest.xml

  1. Step 1: Open the AndroidManifest.xml file in your project and locate the activity, service, or receiver declaration.

Method 2: Use the 'exported' attribute correctly

  1. Step 1: Add the android:exported attribute to your activity, service, or receiver declaration, and set its value to true.

✨ Wrapping Up

To resolve the 'Manifest merger failed' error, update your AndroidManifest.xml file to specify an explicit value for android:exported, and ensure that the attribute is set correctly. If you're still experiencing issues, try re-importing your project or seeking further assistance from the Android Studio community.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions