error.png
導(dǎo)入一個sdk的時域慷,報錯了业筏,如下:
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed with multiple errors, see logs逾柿。
通過查看console來看:
console.png
建議是添加tools,這是我使用2個module才出現(xiàn)的憾股,由于Gradle插件默認(rèn)會啟用Manifest Merger Tool略荡,若項(xiàng)目中其他manifest也定義了與app中的manifest相同的屬性,會導(dǎo)致合并失敗消玄,繼而報錯跟伏。
處理方法:
先在app中的Manifest.xml的manifest根標(biāo)簽上加入xmlns:tools="http://schemas.android.com/tools"丢胚,然后在application和meta標(biāo)簽下添加tools:replace="...."(根據(jù)console來配置)。