Manifest merger failed : Attribute application@label value=(Dormitory) from AndroidManifest.xml:23:9

今天在使用Bmob时,导入即时聊天的SDK,即在build.gradle中加入 

compile 'cn.bmob.android:bmob-im:2.0.5@aar'//bmob-sdk:3.4.7compile 'cn.bmob.android:bmob-sdk:3.4.7-aar'
点击同步之后,报了这样的错误

Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@label value=(Dormitory) from AndroidManifest.xml:23:9-34is also present at [cn.bmob.android:bmob-im:2.0.5] AndroidManifest.xml:13:9-41 value=(@string/app_name).Suggestion: add 'tools:replace="android:label"' to  element at AndroidManifest.xml:20:5-45:19 to override.

意思是我原工程中和导入的工程中的AndroidManifest.xml文件中都使用了app name,合并manifest的过程出现了问题。

解决的方法为:在原工程的AndroidManifest.xml的文件中加上

xmlns:tools="http://schemas.android.com/tools"
tools:replace="android:label"





本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部