testing testing -4 years ago 425
Android Question

How to use the mipmap folder in Xamarin.Android?

For app icons we should use the

folder. Now I added the following folders to the

  • mipmap-hdpi

  • mipmap-ldpi

  • mipmap-mdpi

  • mipmap-xhdpi

  • mipmap-xxhdpi

  • mipmap-xxxhdpi

In each of these folders there is a
for the app icon and the build action is

Now I can't set the
Application Icon
in the
Android Manifest
. It doesn't appear there. What I'm missing?

I deleted the default icon in the
folder and removed the entry in
Android Manifest
. On build I got

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

File: ...\SomeApp.Droid\obj\Debug\android\manifest\AndroidManifest.xml

There was an entry in
which was the old reference to
Icon = @drawable/icon
. Now I changed to
Icon = @mipmap/ic_launcher
and the error was gone.

Answer Source

I manually edited the AndroidManifest.xml to use the mipmapfolder:

<application android:label="@string/app_name" android:icon="@mipmap/ic_launcher"></application>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download