Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No resource found that matches the given name (at 'icon' with value '@mipmap/ic_launcher.png')

enter image description hereI 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" >
like image 320
dn_c Avatar asked Jul 23 '15 09:07

dn_c


4 Answers

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

like image 156
Blackbelt Avatar answered Nov 16 '22 11:11

Blackbelt


Check if these settings are point to the right directory

enter image description here

This panel is-->project structure-->facets.

Hope this is work for you !

like image 21
linjiejun Avatar answered Nov 16 '22 12:11

linjiejun


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

enter image description here

like image 2
Muzammil Hassan Avatar answered Nov 16 '22 10:11

Muzammil Hassan


  1. Try to close the AnroidManifest.xml tab.
  2. Search and open your basic manifest ...
  3. android:icon="@mipmap/ic_launcher"

(Had the same issue because the error appears on AUTOMATICALLY generated manifest, new one)

like image 1
J A S K I E R Avatar answered Nov 16 '22 12:11

J A S K I E R