Problem with mipmap icon

JosecanallaJosecanalla ARMember ✭✭
edited January 2018 in Xamarin.Android

Hello, I am developing a Xamarin.Android app.

I have mipmap folders, and I create a Icon.png file inside each one with the specific dimensions. Then, in AndroidManifest I select @mipmap/Icon as "Application icon".

But when I compile the solution I get the error:

Error: No resource found that matches the given name (at 'icon' with value '@mipmap/Icon').

If I put Icon.png into "drawable" folder and select @drawable/Icon as Application Icon it works OK.

Tagged:

Best Answer

  • JosecanallaJosecanalla AR ✭✭
    Accepted Answer

    The solution:
    1. Change all "Icon.png" names into mipmap folders to "icon.png".
    2. Clean project
    3. Re-open Visual Studio
    4. Select "@mipmap/icon" in "Application Icon" in AndroidManifest.

Answers

  • JosecanallaJosecanalla ARMember ✭✭
    Accepted Answer

    The solution:
    1. Change all "Icon.png" names into mipmap folders to "icon.png".
    2. Clean project
    3. Re-open Visual Studio
    4. Select "@mipmap/icon" in "Application Icon" in AndroidManifest.

  • adrianex03adrianex03 Member ✭✭
    edited December 2018

    On Android Platform you should name your images based on their allowed naming restrictions.
    Here are those allowed naming ways.

    Android Naming Restrictions:
    * Lowercase letters
    * Numbers
    * Underscore
    * Period

    Hope it helps you in the future.

Sign In or Register to comment.