gongwen / MarqueeViewLibrary

一个帮您快速实现跑马灯效果的library
2.36k stars 313 forks source link

和项目冲突了 #20

Closed msn465780 closed 7 years ago

msn465780 commented 7 years ago

compile 'com.gongwen:marqueelibrary:1.1.1'

这样添加后,报错, Error:Execution failed for task ':show_entry:processDebugManifest'.

Manifest merger failed : Attribute application@label value=(@string/application_name) from AndroidManifest.xml:17:9-49 is also present at [com.gongwen:marqueelibrary:1.1.1] AndroidManifest.xml:13:9-41 value=(@string/app_name). Suggestion: add 'tools:replace="android:label"' to element at AndroidManifest.xml:13:5-1144:19 to override.

gongwen commented 7 years ago

这个问题是因为项目名称和引用项目的名称冲突, 解决方法: manifest加上 xmlns:tools="http://schemas.android.com/tools" application加上tools:replace="android:label" 或者,你更新下library,使用compile 'com.gongwen:marqueelibrary:1.1.2'