I have created an app. When I execute it in debug mode it works fine. But when I want to generate the signed APK I am getting the following errors
Android resource linking failed
F:Android Studio ProjectsNMTappbuildintermediatespackaged_manifestsreleaseAndroidManifest.xml:28: error: resource mipmap/ic_launcher_nmt (aka com.example.thumbsol.accuratesurvey:mipmap/ic_launcher_nmt) not found.
F:Android Studio ProjectsNMTappbuildintermediatespackaged_manifestsreleaseAndroidManifest.xml:28: error: resource mipmap/ic_launcher_round_new_nmt_round (aka com.example.thumbsol.accuratesurvey:mipmap/ic_launcher_round_new_nmt_round) not found.
error: failed processing manifest.
Here is the link to my launcher icon
Below is the manifest
<application
android:usesCleartextTraffic="true"
android:name=".MainApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher_nmt"
android:label="@string/app_banner"
android:roundIcon="@mipmap/ic_launcher_round_new_nmt_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:replace="android:label">
.
.
.
</application>
Any help would be highly appreciated
2
Answers
Check this in your project
the folder structure looks like this
in the android studio looks like this – https://imgur.com/a/4uJXABK
change the project view to "Project" and under res, folder check if the mipmap folders are there. maybe when you are creating a logo, you are choosing debug not main. make sure.