如何更改 Flutter 应用程序的名称? [英] How to change the name of Flutter Application?
问题描述
我刚刚按照 this 的说明制作了一个 Flutter 应用程序页面,我用谷歌搜索了如何更改应用程序的名称,发现 这个答案.但我无法从清单文件中更改应用程序的名称.最初 android:name
是 io.flutter.app.FlutterApplication
.我将其更改为 Startup Namer
,它给出了错误
I just made a Flutter app following the instructions of this page, and I googled how to change the name of the application, and found this answer. But I can't change the name of the application from the manifest file. Initially android:name
is io.flutter.app.FlutterApplication
. I changed that to Startup Namer
, and it gave the error
error: attribute 'android:name' in <application> tag must be a valid Java class name.
如何解决此错误并更改名称?
How to reslove this error and change the name?
推荐答案
应用程序的显示名称由属性 android:label
标识.您应该更改那个而不是 android:name
.
The displayed name of the application is identified by the attribute android:label
. You should change that one instead of android:name
.
这篇关于如何更改 Flutter 应用程序的名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!