【问题标题】:Android Resource Linking Failed - Error: Failed Processing ManifestAndroid 资源链接失败 - 错误:处理清单失败
【发布时间】:2022-10-13 23:06:52
【问题描述】:

<应用程序

android:allowBackup="true"
android:appComponentFactory="androidx.core.app.CoreComponentFactory"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme" >

我在 Android Studio 有一个代码,它给出了一个错误:

Android资源链接失败 c:\x\x\x\x\app\build\intermediates\bundle_manifest\release\AndroidManifest.xml:37: 错误:资源 mipmap/ic_launcher(又名 com.xx.xx:mipmap/ic_launcher) 未找到。 c:\x\x\x\x\app\build\intermediates\bundle_manifest\release\AndroidManifest.xml:37: 错误:资源 mipmap/ic_launcher_round(又名 com.xx.xx:mipmap/ic_launcher_round) 未找到。错误:失败 处理清单。

我已经使缓存失效,清理项目,重建项目,更新图像资产,但它仍然给出错误。

谢谢!

【问题讨论】:

  • 您是否尝试过检查ic_launcher 是否存在于您的mipmap 文件夹中,并且该文件夹是release 配置的一部分?
  • 当我检查时,我可以在 main/androidmanifest 中看到我的图标(ic_launcher 和 ic_launcher_round),但在 release/androidmanifest 中没有显示。我还有 6 个不同的 mipmap 文件夹(mipmap any-dpi26、mipmap-hdpi、mipmap-mdpi 等)。路径名称差异会影响吗?

标签: android android-studio google-play


【解决方案1】:

先生,您在资产上添加了图像,您可以将图像放在 mipmap 文件夹中,然后再次运行重建。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-08-31
    • 2019-05-09
    • 1970-01-01
    • 1970-01-01
    • 2019-02-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多