Launcher Icon is not Shown in Oreo 8.0/8.1

回眸只為那壹抹淺笑 提交于 2019-11-28 19:08:40

Yes, I also faced the same issue in Android Oreo.

1) Add your images by adding in Image Vector

This might not be the ideal solution. But deleting the directory named mipmap-anydpi-v26 will resolve the issue if you have correct icons in relevant folders.

I was having the same problem make sure you have set drawable or mipmap to icon attribute as well as roundIcon attribute under application tag in your Manifest file

<application
    android:icon="@drawable/ic_launcher"
    android:roundIcon="@mipmap/ic_launcher_round">

</application>

This might resolve someone's issue. Thanks.

Use a .png image in the Image Asset tool to generate launcher icon.

None of the previous answers worked for me. I discovered my project had a file app/src/main/res/drawable-v24/ic_launcher_foreground.xml while another project didn't. That was the reason the other project did have an icon in Android 8 and this project not. When I removed the drawable-v24 folder I got my icon back!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!