Android: 关于清单合并失败

Android: Regarding Manifest merger failed

Android:关于清单合并失败:

Manifest merger failed : Attribute application@label value=(Nodir Mach) from AndroidManifest.xml:22:9-35 is also present at [com.iarcuschin:simpleratingbar:0.1.5] AndroidManifest.xml:13:9-41 value=(@string/app_name). Suggestion: add 'tools:replace="android:label"' to element at AndroidManifest.xml:17:5-291:19 to override.

Manifest merger failed : Attribute application@label value=(Nodir Mach) from AndroidManifest.xml:22:9-35 is also present at [com.iarcuschin:simpleratingbar:0.1.5] AndroidManifest.xml:13:9-41 value=(@string/app_name). Suggestion: add 'tools:replace="android:label"' to element at AndroidManifest.xml:17:5-291:19 to override.

您的库模块 AndroidManifest.xml 中有 android:label,因此它与您的应用程序模块发生冲突。根据错误提示,将 tools:replace="android:label" 添加到您的应用程序模块 AndroidManifest.xml。像这样:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
 xmlns:tools="http://schemas.android.com/tools"
 package="com.your.package">

    <application
      android:icon="mipmap/ic_launcher"
      android:label="application name"
      tools:replace="android:label"

      ...
    >

     ...

    </application>


</manifest>