Google Play says I have invalid icon

FigmoFigmo Figmo justfigmoUGMember

I am trying to upload my first app to Google play. It says the icon is invalid. I need a clarification on icons. The docs say I need icons of 36x36, 48x48, 72x72 and 96x96. My manifest file only specifies one icon - it is 72x72 in size. Here is my AndroidManifest.xml from Visual Studio:

Where do I specify the other sizes? Do I just add multiple <application..../> lines in the .xml file for each icon?


  • TomOpgenorthTomOpgenorth Tom Opgenorth CAMember, Xamarin Team Xamurai

    The snippet from your manifest isn't showing up in your post. However, you can only have one <application /> element in your manifest.

    Creating the icons is pretty easy with the Android Asset Studio, it will make them the appropriate size.

    As for setting the icon, check out the Hello, World Walkthrough section in the Hello, World article.

  • FigmoFigmo Figmo justfigmo UGMember

    Cool info. I didn't use Asset Studio because I don't have Chrome and it doesn't work with my browser. But I can resize PNG's easy enough (if that is all there is to it).

    The hello world example does show how to add an icon. And I did that right off when I first started my first project. But what has me confused is: HOW TO ADD MORE THAN ONE ICON?

    Or maybe I'm not understanding what Google is expecting of me. The docs say "An application should have icons for all of the generalized screen densities as outlined in the table below" (and it shows 4 different sizes) So I am assuming I need 4 icons of the 4 specified sizes in my app.

    But which size do I list in the xml file for the icon line you pointed out above?

    And where do I specify the names of the other sizes?

    BTW: originally I created my project with VS2012. And it only gave me a Drawable folder under Resources. I notice in the hello world app there are other folders (drawable-ldpi, drawable-mdpi, etc). Could it be these folder names are required and that is how Android finds the other sizes of icons?

  • FigmoFigmo Figmo justfigmo UGMember

    Clarification: hello world DOES show **ADDING **more than 1 icon. But that is it. So unless my last paragraph was correct and it is the existence and the name of these other folders that is important - that is what has me confused.

  • TomOpgenorthTomOpgenorth Tom Opgenorth CAMember, Xamarin Team Xamurai

    Yes, you will need to create the folders for each density:


    Put the icons of the appropriate size in their folder. All you have to do is refer to the icon using the syntax @drawable/ic_launcher (or what ever you named your icon). Android will figure out what folder the icon is in and use that.

    You might find it worth while to check out Xamarin's Resources document.

  • FigmoFigmo Figmo justfigmo UGMember

    OK - makes sense. One last question. do I even need the the Resources/drawable folder that was created by the VS2012 wizard? Or do I just delete that after creating the new folder tree?

  • TomOpgenorthTomOpgenorth Tom Opgenorth CAMember, Xamarin Team Xamurai

    Technically, you don't need it. Personally, I keep it around, and copy the files from my drawable-mdpi folder into drawable. If for some crazy reason Android can't find a drawable folder that matches your device, then it will use the images in drawable. If the drawable folder doesn't exist, then your application will crash.

  • NicollasRicasNicollasRicas Nicollas Ricas BRMember ✭✭
    edited June 2013

    If you have drawable folder it will ignore all specific density drawable folders.

    Delete drawable folder and create a following folders:

    drawable-ldpi (36x36)

    drawable-mdpi (48x48)

    drawable-hdpi (72x72)

    drawable-xhdpi (96x96)

    drawable-xxhdpi (144x144)

  • TomOpgenorthTomOpgenorth Tom Opgenorth CAMember, Xamarin Team Xamurai

    @NicollasRicas the presence of the drawable folder does not mean that all other drawable folders are ignored. How Android decides what resources folder will be used can be a bit of a convoluted process. Part 3 - Alternate Resources of Xamarin's documentation provides a description and an example of how Android determines what resources to load on a particular device.

  • NicollasRicasNicollasRicas Nicollas Ricas BRMember ✭✭
    edited June 2013

    @topgenorth look at Android Resources documentation. If you look in all xamarin document examples, drawable folder not exist when drawable-ldpi and others are created.

    I tested this creating all specific drawable folders and put image with different color each one.

  • NicollasRicasNicollasRicas Nicollas Ricas BRMember ✭✭

    @topgenorth thanks, now i understand why it's better keep drawable folder.

Sign In or Register to comment.