Maw*_*won 5 java android bundle release
我是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">
 ...
提前致谢。
我刚刚找到了一个解决方案...
转到您的项目文件夹,您将看到这样的内容..
注意您将只有调试文件夹。因此,创建名为release的新文件夹并复制debug文件夹中的所有内容并生成apk,现在它可以工作了
谢谢
Maw*_*won -1
我找到了解决方案。要修复此错误。需要做:
Project -> app -> res -> minmap按鼠标右键;New -> Image Asset出现的菜单中;Name”中的“ ic_launcher2”改为“ ic_launcher”;
| 归档时间: | 
 | 
| 查看次数: | 1551 次 | 
| 最近记录: |