清单合并失败错误背景
我正在将我当前的项目大型应用程序迁移到Android Studio和Gradle中。我目前卡在以下问题上:
Error:(87, 9) Execution failed for task ':App:processDebugManifest'.
> Manifest merger failed : Attribute application@label value=(@string/app_label) from AndroidManifest.xml:87:9
is also present at ANDROID_APPLICATION:Library:unspecified:9:18 value=(@string/app_name)
Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:82:5 to override
我尝试将以下属性添加到主文件中:AndroidManifest.xml
tools:replace="android:label, *App Name*"
tools:replace="android:label, @string/app_label"
tools:replace="android:label"
这些属性定义都不起作用。我做错了什么?