flutter Android 资源链接失败 @mipmap/ic_launcher 未找到
flutter Android resource linking failed @mipmap/ic_launcher not found
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 清单文件中删除图标,但我想要 flutter ic_launcher。知道吗,原因是什么?
它明确表示找不到图标,您需要更改名称或将现有图标重命名为 ic_launcher
我重新安装了 flutter,现在可以使用了
如果您不仅更改了应用程序图标的图像,还更改了它的名称,那么您还需要更改 AndroidManifest.xml 中的图标名称。
android:icon="@mipmap/'Your icon_name'">
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 清单文件中删除图标,但我想要 flutter ic_launcher。知道吗,原因是什么?
它明确表示找不到图标,您需要更改名称或将现有图标重命名为 ic_launcher
我重新安装了 flutter,现在可以使用了
如果您不仅更改了应用程序图标的图像,还更改了它的名称,那么您还需要更改 AndroidManifest.xml 中的图标名称。
android:icon="@mipmap/'Your icon_name'">