Launcher Icon is not Shown in Oreo 8.0/8.1
Asked Answered
U

7

47

Explanation:

I have a working app in google play market. Everything works fine in android versions from 4.0-7.0.

Case:

When the client downloaded it on his Android 8.0 (Oreo) a launcher icon did not seem to show instead android's default launcher icon is showing!!

Question:

Anyone who has encountered such issue? I need any hints to solve it since it seems weird because I have all 4 typed .png icons in mipmap folder.

Unquestionable answered 22/12, 2017 at 9:3 Comment(0)
V
45

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

1) Add your images by adding in Image Vector

enter image description here

Vogele answered 22/12, 2017 at 9:11 Comment(8)
Now I will try and let you know whether it will work or not.Unquestionable
Yes. it did work. If I had an .svg icons would it still be a problem @Nirav Joshi?Unquestionable
Best and easiest way to do it.Emory
android.jlelse.eu/…Vogele
How to open this asset studio ? I mean can you please tell teh steps to open assests studio ?Endear
File -> New - > Image Asset @EndearVogele
Thanks @Nirav JoshiEndear
when i'm tapping the next button screen is shaking, its not creating can you please help mePleasance
C
34

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.

Chara answered 22/11, 2018 at 8:25 Comment(1)
Not sure why this works. Could you please elaborate?Cynthia
X
23

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.

Xenogamy answered 5/4, 2018 at 9:50 Comment(1)
Thanks! I didn't create a right ic_launcher_round icon.Solley
C
2

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!

Cordeelia answered 27/2, 2019 at 18:53 Comment(0)
F
1

Try restart your mobile and install app on device

Fingerprint answered 2/8, 2021 at 11:26 Comment(1)
Weird, but this was the only solution that helped me.Meri
I
0

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

Isla answered 6/5, 2018 at 5:10 Comment(0)
C
0

Android -> Project -> App - > src -> res

right-click on res then -> new -> image asset -> inside add image set as your logo ratio

enter image description here

enter image description here

Circosta answered 10/6, 2021 at 8:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.