I am trying to change launcher icon for the application I am developing but the icon remains same (Android Studio 3.0). I have tried changing it from manifest.xml and minimap. It appears to be picking up icon from two XML files named as ic_launcher_background.xml and ic_launcher_forground.xml. I have tried deleting these files but safe delete is not allowing me to. I am attaching screenshot of my project. enter image description here
Asked
Active
Viewed 3,069 times
-2
-
Try with rebuild once and after that install your application. Because sometimes andtoid studio not update this type of changes it will take from caches. So try with rebuild and see the result. – Bhaven Shah May 13 '20 at 03:17
4 Answers
1
Copy & paste launcher icon .png file to mipmap folder. Better if you add icon to all screen types hdpi, mdpi, xhdpi & etc. Then change android manifest code like this.
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"

Dinith Rukshan Kumara
- 638
- 2
- 10
- 19
-
I have tried that already. Not working as i have mentioned in my question, it is picking up icon from 2 xml files. – Muhammad Abdullah Nov 07 '17 at 20:21
-
1why you pick them from xml. Add them in mipmap or drawable folder. Those folders use for icons, pictures & other image resources. You can't pick them from xmls. Because android don't use xml for launcher icons. – Dinith Rukshan Kumara Nov 07 '17 at 20:47
-
I said "android studio is automatically picking up from xml files". That is exactly why i asked this question. – Muhammad Abdullah Nov 08 '17 at 19:43
0
try to move your your ic_launcher_torch icon into mipmap directory

Kulebin
- 246
- 1
- 8
-
I have tried that already. Replaced all the images in mipmap directory – Muhammad Abdullah Nov 07 '17 at 19:04
0
- Remove the ic_launcher_torch.png file from drawables folder.
- Right click on res folder> New Image Asset > Icon type > Action Bar and Tab Icons > Asset type - image > Choose your logo in path > finish.
- Add
android:icon="@mipmap/yourLogoName"
The image will be saved in /res/drawable folder. Learn more: https://developer.android.com/studio/write/image-asset-studio.html

Kvaibhav01
- 391
- 1
- 4
- 14
-
I have done exactly what you told me to, it still isn't changing launcher icon – Muhammad Abdullah Nov 07 '17 at 20:26
-
Don't use XML file for launcher icons. You may need to refresh/rebuild/clean your project if you're facing issues. If nothing happens, uninstall and reinstall the IDE. – Kvaibhav01 Nov 08 '17 at 13:23
0
make changes in manifest file at both location android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round"
First uninstall the app from the phone(dont reinstall when you already have it installed) After the app is uninstalled ,try installing it once again . I had the same issue ,wasted around 2 hrs and this worked for me
-
1Welcome to StackOverflow, add some more description and code if it's required to understand the answer because it will resolve someone else problem ASAP – Nensi Kasundra May 13 '20 at 04:32