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

错误:
> Manifest merger failed : Attribute [email protected] value=(@drawable/logo2) from AndroidManifest.xml:58:9-39
  is also present at [:kurento-room-client-android] AndroidManifest.xml:13:9-43 value=(@mipmap/ic_launcher).

  Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml:55:5-116:19 to override.



错误说明:AS的Gradle插件默认会启用Manifest Merger Tool,若Library项目中也定义了与主项目相同的属性(例如默认生成的android:icon和android:theme),则此时会合并失败,并报上面的错



解决方案:
1.在manifest根标签上加入xmlns:tools=”http://schemas.android.com/tools”

2.Manifest.xml的application标签下添加tools:replace=“android:icon, android:theme”


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