Attribute application@label value=(xxx) from AndroidManifest.xml:8:16-37 is also present at [com.github.adrielcafe:AndroidAudioConverter:0.0.8] AndroidManifest.xml:11:18-50 value=(@string/app_name)

关于安卓编译错误Attribute application@label value=(xxx) from AndroidManifest.xml:8:16-37 is also present at [com.github.adrielcafe:AndroidAudioConverter:0.0.8] AndroidManifest.xml:11:18-50 value=(@string/app_name).Suggestion: add 'tools:replace="android:label"' to element at AndroidManifest.xml:8:3-29:17 to override.
  • 问题的大概意思是在AndroidManifest.xml文件中application的label需要手动设定并覆盖

  • 在项目文件夹中找到android/app/src/main/AndroidManifest.xml文件

image-20211105154038040

  • 找到application标签,如果没有就在manifest标签下新建一个,如下

    <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="<package name>"> <application xmlns:tools="http://schemas.android.com/tools" tools:replace="android:label" android:label="app name" android:icon="@mipmap/launcher_icon"> </application> </manifest>
  • 其中android:label是你项目中最终展示的名字,android:icon是图标文件,添加的信息为

    xmlns:tools="http://schemas.android.com/tools" tools:replace="android:label"
  • 必须要添加xmlns:tools这一行不然会报错,并且添加过后一定要指定android:label的值作为你的app名字不然也会报错

  • 保存重新编译就👌了


__EOF__

本文作者R1cardo
本文链接https://www.cnblogs.com/r1cardo/p/15513684.html
关于博主:评论和私信会在第一时间回复。或者直接私信我。
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
声援博主:如果您觉得文章对您有帮助,可以点击文章右下角推荐一下。您的鼓励是博主的最大动力!
posted @   R1cardo  阅读(942)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· DeepSeek 开源周回顾「GitHub 热点速览」
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
点击右上角即可分享
微信分享提示