Caused by: java.lang.RuntimeException: Manifest merger failed with multiple errors, see logs
时间: 2023-11-05 16:36:45 浏览: 44
This error occurs when there are conflicts between different sections of the AndroidManifest.xml file. It usually happens when you add a new library or module to your project, and it has its own configuration in the manifest file.
To fix this error, you need to identify the conflicts by checking the logs. Look for lines that start with "Error:" or "Warning:". These lines will tell you which sections of the manifest file are causing the conflicts.
Once you have identified the conflicts, you need to resolve them. There are different ways to do this, depending on the specifics of your project. Some common solutions include:
- Removing conflicting sections from the manifest file.
- Adding tools:replace="attribute" to the manifest file to indicate which attributes should be replaced when there are conflicts.
- Adding tools:node="merge" to the manifest file to indicate that two sections should be merged.
After you have made the necessary changes to the manifest file, rebuild your project and check that the error is resolved.