Search code examples
androidgradledrawablelauncher

Android application showing default icon launcher


I'm having a problem with my android application icon launcher. I have drawables for hdpi, xhdpi, mdpi and xxhdpi.

There is the code of my AndroidManifest.xml file:

<application
        android:name=".MyApp"
        android:icon="@drawable/ic_launcher_app">
...
</application>

In some devices the icon launcher appears normally. However, in other devices, the application shows the default package icon launcher.

Besides that, I am using Gradle in my project. Does Gradle have any relation with kind of problem?

Any ideas? Thanks in advance


Solution

  • Put your icon in all resolution folders like below:

     res/...
            drawable-ldpi/...
                ic_launcher_app.png
            drawable-mdpi/...
                ic_launcher_app.png
            drawable-hdpi/...
                ic_launcher_app.png
            drawable-xhdpi/...
                ic_launcher_app.png
            drawable-xxhdpi/...
                ic_launcher_app.png