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
<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>
因为我没有应用程序标签,所以我很困惑在哪里添加什么。
答案 0 :(得分:1)
您需要在以下层次结构中找到 AndroidManifest 文件
<块引用>android/app/src/main
那么你需要在应用标签之间添加tools:replace="android:label
详细说明:
<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">