Manifest merger failed
Error text
Manifest merger failed with multiple errors, see logs Attribute application@label value=(App) from AndroidManifest.xml is also present at [lib] value=(Lib). Suggestion: add 'tools:replace="android:label"' to <application> element
Cause
The AndroidManifest files of the app and its libraries set the same attribute to different values. Gradle cannot merge them.
Step-by-step fix
- Read the "Suggestion" line under the error. Gradle writes the remedy itself.
- Add
xmlns:toolsto the<manifest>tag. - Force your own value with
tools:replace="android:label"on the clashing attribute. - To cancel a permission another library asks for, use
tools:node="remove". - On Android 12 and up every
<activity>with an intent filter needs an explicitandroid:exported.
Example commands
<manifest xmlns:tools="http://schemas.android.com/tools" ...>
<application
android:label="@string/app_name"
tools:replace="android:label">
</application>
</manifest>
./gradlew :app:processDebugMainManifest --stacktraceHow to prevent it
After editing the manifest, open the Merged Manifest view; the final result is shown there.
Author and license: Nibras Code
- APK will not install
- What is a parse error?
- The keystore is lost
- The signatures do not match
- Package name error
- The APK file is damaged
- Play Protect blocks the app
- The package appears to be invalid
- Not enough storage
- The phone is not compatible
- An older version will not install
- XAPK will not install
- Gradle sync failed
- Could not resolve a dependency
- Duplicate class error
- Dex limit: 65536 methods
- R8: Missing class
- JDK version mismatch
- SDK location not found
- minSdkVersion conflict
- compileSdk is too low
- EAS build: Gradle failure
- expo prebuild error
- Metro: Unable to resolve module
- Hermes: JS error only in release
- White screen in release
- Red screen: cannot reach Metro
- Expo SDK mismatch
- Capacitor sync error
- Capacitor: white screen
- EAS: keystore and credentials error
- Keystore was tampered with / wrong password
- Wrong key alias or password
- Play: signed with the wrong key
- INSTALL_FAILED_UPDATE_INCOMPATIBLE
- INSTALL_FAILED_VERSION_DOWNGRADE
- INSTALL_FAILED_INSUFFICIENT_STORAGE
- INSTALL_FAILED_NO_MATCHING_ABIS
- Parse error (problem parsing the package)
- "App not installed" error
- Installing an AAB file on a phone
- adb: device "unauthorized"
- adb: device not found
- adb server version mismatch
- Activity class does not exist
- Play: targetSdk level too low
- Play: permissions policy rejection
- Play: 64-bit requirement
- Play: versionCode already used
- ClassNotFound / NoSuchMethod crash
- OutOfMemoryError crash
- CLEARTEXT communication not permitted
- SecurityException: permission denied