简体   繁体   中英

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM