【发布时间】: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