locked
Problem with mipmap icon RRS feed

  • Question

  • User309742 posted

    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.

    Monday, January 8, 2018 6:30 PM

Answers

  • User309742 posted

    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.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, January 9, 2018 3:06 AM

All replies

  • User309742 posted

    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.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, January 9, 2018 3:06 AM
  • User370614 posted

    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.

    Monday, December 3, 2018 7:47 PM
  • User22177 posted

    @adrianex03 said: 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.

    Thank you! This is what actually helped me. We just exchanged icons in an Android project for the new adaptive icons and the designer were giving us icon names with capital letters. It works when you have the icons in the drawable folder but doesn't when they are in the mipmap folder.

    Friday, May 24, 2019 1:11 PM
  • User370614 posted

    @JFMG said: @adrianex03 said: 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.
    

    Thank you! This is what actually helped me. We just exchanged icons in an Android project for the new adaptive icons and the designer were giving us icon names with capital letters. It works when you have the icons in the drawable folder but doesn't when they are in the mipmap folder.

    Is always a pleasure to help, your welcome.

    Friday, May 24, 2019 2:06 PM