Android 导入第三方库失败

来源:互联网 发布:mac显示电池没有在充电 编辑:程序博客网 时间:2024/04/29 03:18

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

> Manifest merger failed : Attribute application@label value=(Application) from AndroidManifest.xml:9:9-36

  is also present at [com.lzp.floatingactionbutton:floatingactionbuttonplus:1.0.0] AndroidManifest.xml:13:9-41 value=(@string/app_name).

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


主要的问题是你的第三方库跟原有的程序 在label属性上有冲突导致无法正确的合并,问题不难解决细心点报错信息里面已经给了解决办法,Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:5:5-82:19 to override.

<application    android:name=".Activity.SZXApplication"    android:allowBackup="true"    android:icon="@mipmap/ic_logo"    android:label="Application"    android:supportsRtl="true"    tools:replace="android:label"    android:theme="@style/AppTheme">
加上红色的一行代码就ok了
大家加油!!!




0 0