简体   繁体   English

无法在 Android Studio 4.0.1 中的 Flutter 项目中设置启动器图标

[英]Unable to set Launcher Icon in Flutter Project in Android Studio 4.0.1

I am trying to set launcher icons for Android through New > Image Asset and I don't see the option anymore.我正在尝试通过 New > Image Asset 为 Android 设置启动器图标,但我再也看不到该选项了。 I believe this is a recent change in Android Studio as I used to do it until a few months ago by right-clicking the res folder to add New > Image Asset.我相信这是 Android Studio 中最近的一个变化,因为我在几个月前通过右键单击 res 文件夹以添加 New > Image Asset 来这样做。 How do I set the icons in Android Studio 4.0.1?如何在 Android Studio 4.0.1 中设置图标?

I wanted to see if Resource Manager would be of any help but it remains stuck with a message "Waiting for build to finish..."我想看看资源管理器是否有任何帮助,但它仍然卡在一条消息“等待构建完成......”

在此处输入图片说明

如果尝试更改应用程序的图标,您可以点击此链接: https://stackoverflow.com/questions/43928702/how-to-change-the-application-launcher-icon-on-flutter : https://stackoverflow.com/questions/43928702/how-to-change-the-application-launcher-icon-on-flutter

I had the same problem and ended up creating a new empty native android project for just creating the launch icons.我遇到了同样的问题,最终创建了一个新的空原生 android 项目,用于创建启动图标。 And then I just copied them to my Flutter project.然后我只是将它们复制到我的 Flutter 项目中。

(After creating the icons via the resource manager, you can right click on them and clicking "show in explorer" will lead you directly to the folder. So it is easy to copy and paste from there on.) (通过资源管理器创建图标后,您可以右键单击它们,然后单击“在资源管理器中显示”将直接引导您到该文件夹​​。因此很容易从那里复制和粘贴。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM