美文网首页
bug处理:Error:Execution failed for

bug处理:Error:Execution failed for

作者: Hancle | 来源:发表于2017-06-29 11:11 被阅读0次
    error.png

    导入一个sdk的时,报错了,如下:

    Error:Execution failed for task ':app:processDebugManifest'.

    > Manifest merger failed with multiple errors, see logs。

    通过查看console来看:

    console.png

    建议是添加tools,这是我使用2个module才出现的,由于Gradle插件默认会启用Manifest Merger Tool,若项目中其他manifest也定义了与app中的manifest相同的属性,会导致合并失败,继而报错。

    处理方法:

    先在app中的Manifest.xml的manifest根标签上加入xmlns:tools="http://schemas.android.com/tools",然后在application和meta标签下添加tools:replace="...."(根据console来配置)。

    相关文章

      网友评论

          本文标题:bug处理:Error:Execution failed for

          本文链接:https://www.haomeiwen.com/subject/nalmcxtx.html