我是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)
提前致谢。