Create signed bundle release. Error: Android resource linking failed

Issue

I am a beginner in java android.

The following error occurs when releasing Java project "Create signed bundle" in Android Studio (When I choose debug they are builded normally):

I searched for a solution on google search engine and stackoverflow.
None of the provided answers helped solve this problem.

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">
 ...

enter image description here

Thanks in advance.

Solution

I found solutions. To fix this error. Need to do:

  1. Project -> app -> res -> minmap press the right mouse button;
  2. In the New -> Image Asset menu that appears;
  3. In "Name" will change "ic_launcher2" to "ic_launcher";
  4. In "Path" reselect the original Image file:
    enter image description here

Answered By – Mawon

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published