小编Maw*_*won的帖子

创建签名的捆绑包版本。错误:Android资源链接失败

我是java android 的初学者。

在 Android Studio 中发布 Java 项目“创建签名包”时出现以下错误(当我选择调试时,它们会正常构建):

我在谷歌搜索引擎和stackoverflow上搜索了解决方案。提供的答案都没有帮助解决这个问题。

Android resource linking failed
C:\Users\user\AndroidStudioProjects\Door\app\build\intermediates\packaged_manifests\release\AndroidManifest.xml:22: error: resource mipmap/ic_launcher (aka com.example.door:mipmap/ic_launcher) not found.
C:\Users\user\AndroidStudioProjects\Door\app\build\intermediates\packaged_manifests\release\AndroidManifest.xml:22: error: resource mipmap/ic_launcher_round (aka com.example.door:mipmap/ic_launcher_round) not found.
error: failed processing manifest.
Run Code Online (Sandbox Code Playgroud)

Androidmanifest.xml

...
<application
    android:allowBackup="true"
    <!--When I delete these two lines, the build ends successfully.-->
    android:icon="@mipmap/ic_launcher"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:label="@string/app_name"
    android:requestLegacyExternalStorage="true"
    android:supportsRtl="true"
    android:theme="@style/Theme.Door">
 ...
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

提前致谢。

java android bundle release

5
推荐指数
2
解决办法
1551
查看次数

标签 统计

android ×1

bundle ×1

java ×1

release ×1