首页 > 解决方案 > flutter项目在哪里存储android应用名称?

问题描述

如果 Flutter 项目的应用程序名称在 Android 中显示,我该如何更改App Info

这是带有 Android 应用名称的示例图片。

显然它与pubspeck.yaml文件中定义的不一样。

在此处输入图像描述

标签: flutter

解决方案


转到位置中的文件Android/app/src/main/android manifest.xml

在该文件中找到应用程序标记及其 android label 属性,如下所示

 <application
        android:name="io.flutter.app.FlutterApplication"
        android:label="Hello World"<!-- Change this to the name you want --!>
        android:icon="@mipmap/ic_launcher">

更改 android:label 属性,然后删除并重新安装应用程序


推荐阅读