ged*_*lod 3 android android-manifest kotlin flutter
在我的 android 项目中安装新库后,出现以下错误:
/android/app/src/debug/AndroidManifest.xml Error:
Attribute application@label value=(Compassion) from (unknown)
is also present at [com.github.master] AndroidManifest.xml:15:9-41 value=(@string/app_name).
Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:6:4-36:19 to override.
FAILURE: Build failed with an exception.
Run Code Online (Sandbox Code Playgroud)
经过一番研究,我发现新安装的库也有一个application@label属性,所以你所要做的就是修改你的AndroidManifest.xml文件,添加以下两行代码:
xmlns:tools="http://schemas.android.com/tools"到清单标签<manifest
xmlns:tools="http://schemas.android.com/tools">
...
Run Code Online (Sandbox Code Playgroud)
tools:replace="android:label"到应用程序标签...
<application
tools:replace="android:label">
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2281 次 |
| 最近记录: |