gpt4 book ai didi

android - flutter Android资源链接失败@mipmap/ic_launcher未找到

转载 作者:行者123 更新时间:2023-12-04 23:54:52 26 4
gpt4 key购买 nike

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
E:\Programs\Flutter\<My_APP>\build\app\intermediates\packaged_manifests\debug\AndroidManifest.xml:16: AAPT: error: resource mipmap/ic_launcher (aka com.example.<My_APP>:mipmap/ic_launcher) not found.

我尝试从 android manifest 文件中删除图标,但我想要 flutter ic_launcher。任何想法,是什么原因?

最佳答案

如果您不仅在图像方面而且在名称方面切换了应用程序图标,那么您还需要在 AndroidManifest.xml 中更改图标名称。

android:icon="@mipmap/'Your icon_name'">

关于android - flutter Android资源链接失败@mipmap/ic_launcher未找到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68846562/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com