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/