Android Studio启动器图标-必须设置图标名称

时间:2018-09-23 22:52:49

标签: android android-studio flutter android-icons

我现在正在开发Flutter应用,并尝试将Android应用的图标更改为.png图像。在Android Studio上,当我执行File-> New-> Image Asset:

时,出现此错误

Icon Must Be Set Error

对此有任何帮助吗?

1 个答案:

答案 0 :(得分:1)

在您的public partial class Form1 : Form { public System.Timers.Timer holder; Label say; public Form1() { InitializeComponent(); say = new Label(); say.Text="start text"; this.Controls.Add(say); holder = new System.Timers.Timer(5000); holder.Elapsed += new ElapsedEventHandler(holdone); holder.Enabled = true; } public void holdone(Object source, ElapsedEventArgs e) { //messagebox is correct but onscreen gui is not say.Text = "new after seconds"; MessageBox.Show(say.Text); } } 文件中添加

pubspec.yaml

可以找到更多信息here