【问题标题】:flutter Android resource linking failed @mipmap/ic_launcher not found颤振Android资源链接失败@mipmap/ic_launcher未找到
【发布时间】:2021-10-21 02:04:34
【问题描述】:
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 清单文件中删除图标,它可以工作,但是,我想要颤振 ic_launcher。有什么想法,是什么原因?

【问题讨论】:

  • 您到底想达到什么目的?你想将你的图标设置为你的 Flutter 应用的午餐图标吗?
  • 显示你的 AndroidManifest.xml 文件
  • 是的,我想设置午餐图标。我只是安装了颤振并尝试运行给我这个错误的演示应用程序

标签: android flutter dart flutter-dependencies dart-pub


【解决方案1】:

我重新安装了颤振,现在它可以工作了

【讨论】:

    【解决方案2】:

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

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

    【讨论】:

      【解决方案3】:

      它清楚地表明图标未找到您需要更改名称或将现有图标重命名为ic_launcher

      【讨论】:

        猜你喜欢
        • 2020-04-06
        • 1970-01-01
        • 1970-01-01
        • 2019-02-01
        • 1970-01-01
        • 2019-04-24
        • 2022-10-02
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多