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

How to Fix: Android Material and appcompat Manifest merger failed

Android Material and appcompat Manifest merger failed due to conflicting versions of material and appcompat libraries.

Quick Answer: Update the material library to a version that is compatible with the appcompat library, such as 1.0.0 or later.

The 'Android Material and appcompat Manifest merger failed' error typically occurs when there are conflicts between the AndroidX libraries used in your project. This can happen due to using both the support library and AndroidX together, which is not recommended. To resolve this issue, you need to update your dependencies to use AndroidX instead of the support library.

🛠️ Step-by-Step Verified Fixes

Method 1: Update Dependencies to AndroidX

  1. Step 1: Remove the support library dependency from your build.gradle file.
  2. Step 2: Replace it with the corresponding AndroidX dependencies. For example, replace `com.android.support:appcompat-v7` with `androidx.appcompat:appcompat`. Similarly, replace `com.android.support.constraint` with `androidx constraintlayout:constraint-layout

Method 2: Update Gradle Scripts

  1. Step 1: Open the Gradle scripts in your project.
  2. Step 2: Replace `com.android.support:appcompat` with `androidx.appcompat:appcompat` and `com.android.support.constraint` with `androidx constraintlayout:constraint-layout

✨ Wrapping Up

By following these steps, you should be able to resolve the 'Android Material and appcompat Manifest merger failed' error in your project.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions