9

In android studio 3.3 when I am trying to import image for launcher icon using legacy only option its showing white background icon even after importing the image its showing same and not changing the icon with imported one.

See the screenshot: enter image description here

What's the problem with android studio 3.3? Any solution?

0xAliHn
  • 18,390
  • 23
  • 91
  • 111
  • Do you want to have a launcher icon with transparent background? – aminography Nov 14 '18 at 04:57
  • No, I just want to have my launcher icon as what i am uploading as png. – 0xAliHn Nov 14 '18 at 05:26
  • Try to use https://romannurik.github.io/AndroidAssetStudio/icons-generic.html by setting `Asset Size` to 48, `Asset Padding` to 0 and `Color` to transparent. Then move the generated images into mipmap directories. – aminography Nov 14 '18 at 06:46
  • That's manual approach. Why android studio image asset not working for generating those images? – 0xAliHn Nov 14 '18 at 06:54
  • Did you select your image png by clicking on `Path` because I don't see it in the image above. – Ümañg ßürmån Nov 14 '18 at 08:41
  • select launcher icon(legacy only) and then select asset type image. Path will be shown – 0xAliHn Nov 14 '18 at 08:56
  • Just change the **shape to none** & you'll good to go with your original icon as launcher. – Jeel Vankhede Nov 19 '18 at 10:13
  • What about reporting this as a bug? AS 3.3 is a beta version, so it might be an error coming with the IDE and you should [report this bug](https://developer.android.com/studio/report-bugs#how_to_report_a_bug); I can't think at any other solution :) – Pier Giorgio Misley Nov 20 '18 at 11:32

4 Answers4

2

This is a known issue in Android Studio 3.3, pending the time before it gets fixed. You can be using this awesome open source tool by someone in the community.

GOTO

https://romannurik.github.io/AndroidAssetStudio/index.html

SELECT Launcher icon generator

Launcher icon generator

SELECT Image and choose the image from the explorer dialogue

Image and choose the image from the explorer dialogue

Your selected image will be shown in the right-hand side as below

Your selected image will be shown in the right-hand side as below

The finally, you can download the icon generated in mipmap folder

The finally, you can download the icon generated in mipmap folder

You can also set varieties of options from the left-hand side, options like the background color, color, padding, shape, effect and the generated file name.

I hope this helps someone.

sodiqOladeni
  • 898
  • 7
  • 14
0

1 > Select Launcher Icon (legacy only)

2 > Select Asset Type : Image

3 > copy paste your image path or select png image by click on the three-dot button right of the textbox

4 > Now open Shape(second last option from bottom) drop-down menu and select option None

5 > Now you can see your png image without the background as you selected

Rutvik Bhatt
  • 3,185
  • 1
  • 16
  • 28
0

From asset studio select

Asset Type : Clipart

And select any file from the samples and confirm the image is properly appearing on the right side window.

If YES

Again select Asset Type : Image

enter image description here

From there you can navigate to an image path directly instead of copying and pasting image path.

Note: Please confirm that the image you choose fulfills the specifications for a launcher icon.

enter image description here

Usually, I import Google play icon 512*512 (Both my Google play and Launcher icons are same) to Asset studio where other icons sizes will be automatically scaled down by Android Studio Itself

Nikhil
  • 911
  • 15
  • 28
0

Successfully replicated the issue; it appears to be a bug in Android Studio 3.3.
I have filed a bug report.