Ricardo Ribas
Ricardo Ribas

Reputation: 407

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

Upvotes: 0

Views: 1128

Answers (1)

fida1989
fida1989

Reputation: 3249

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

Upvotes: 2

Related Questions