I changed launcher icons in my application. The images I added are of PNG format. But when i clean and build my project, it is giving below error.
No resource found that matches the given name (at 'icon' with value '@mipmap/ic_launcher.png').
Below is my AndroidManifest.xml
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
remove the file's extensions from android:icon
Change from
android:icon="@mipmap/ic_launcher.png"
to
android:icon="@mipmap/ic_launcher"
and please make sure that you have ic_launcher.png
in the mipmap
folder
Edit:
From the screenshot you posted it looks like you are editing the wrong manifest file. Please be sure of editing the one under src/main/manifests
Check if these settings are point to the right directory
This panel is-->project structure-->facets.
Hope this is work for you !
I recently came to an solution just open the "android\app\src\main\AndroidManifest" in android studio or whatever editor you have and edit "ic_launcher" with your icon name then error will be gone and app gets your custom icon
AnroidManifest.xml
tab.android:icon="@mipmap/ic_launcher"
(Had the same issue because the error appears on AUTOMATICALLY generated manifest, new one)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With