首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >颤振构建失败error..androidmanifest没有应用程序标记

颤振构建失败error..androidmanifest没有应用程序标记
EN

Stack Overflow用户
提问于 2021-06-08 11:15:33
回答 1查看 669关注 0票数 1
代码语言:javascript
复制
C:\Users\devis\AndroidStudioProjects\vitality\android\app\src\debug\AndroidManifest.xml:7:9-33 Error:
    Attribute application@label value=(vitality) from AndroidManifest.xml:7:9-33
    is also present at [io.kommunicate.sdk:kommunicateui:2.1.6] AndroidManifest.xml:14:9-41 value=(@string/app_name).
    Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:6:5-43:19 to override.

这是错误^

这是我的androidmanifest.xml

代码语言:javascript
复制
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="devisuresh.vitality">
    <!-- Flutter needs it to communicate with the running application
         to allow setting breakpoints, to provide hot reload, etc.
    -->
    <uses-permission android:name="android.permission.INTERNET"/>
</manifest>

我不知道该在哪里添加什么,因为我没有应用程序标签。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-06-08 11:27:35

您需要在以下层次结构中找到AndroidManifest文件

android/app/src/main

然后,需要在应用程序标记之间添加tools:replace="android:label

详细说明:

代码语言:javascript
复制
<application
        android:name="io.flutter.app.FlutterApplication"
        android:requestLegacyExternalStorage="true"
        android:label="xxxxx"
        android:usesCleartextTraffic="true"
        tools:replace="android:label" // here it goes
        android:icon="@mipmap/ic_launcher">
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67885945

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档