Search code examples
androidandroid-manifest

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

Solution

  • 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