Manifest merger failed with multiple errors, see logs

442 阅读1分钟

现象

编译通过,但是运行的时候出现错误

Manifest merger failed with multiple errors, see logs 

原因

解决办法

1、使用下面的命令查看编译期间的错误

gradlew processDebugManifest --stacktrace

编译成功,无法解决。

2、查看运行期间的错误

(1)首先运行 gradlew task 或者  gradlew tasks --all 来查看命令

(2)通过查看命令,然后输入 gradlew install_908Debug

然后就有错误信息的提示了

 uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library [com.mob:MobApm:1.3.2] C:\Users\x21215\.gradle\caches\transforms-1\files-1.1\MobApm-1.3.2.aar\1945b748d5240a19537682fd
3377fcea\AndroidManifest.xml as the library might be using APIs not available in 15
        Suggestion: use a compatible library with a minSdk of at most 15,
                or increase this project's minSdk version to at least 16,
                or use tools:overrideLibrary="com.mob.mobapm" to force usage (may lead to runtime failures)

根据错误信息提示:com.mob:MobApm 中最低版本支持是16,但是项目中最低版本是15,所以出现了问题,所以提示增加这个。