【发布时间】:2022-09-30 16:24:04
【问题描述】:
我是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.
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\">
...
提前致谢。
标签: java android bundle release