I started an Android project using the default icon (ic_launcher
) using Android Studio. But now I want to change the icon to something else. I tried replacing all the ic_launcher.png
s in the project directory, copying the icons under a new name and change the AndroidManifest.xml
but the app still has the old ic_launcher
. I also tried restarting Android Studio, Invalidate Cache and Restart, uninstall the app from the device but the icon never changed.
PS : Removing the android:icon="@drawable/logo"
(NOTE : I changed ic_launcher.png
to logo.png
to see if it works then) changed the icon to the default android icon. But putting it back still gives me the same old one.
Is there a different procedure to change the icon of an app using Android Studio?
In Android Studio 1.5.1, here what worked for me :
Add this line in manifest application part after the label
android:label="@string/my_app"
android:icon="@mipmap/ic_launcher"
Clean your app
Good Luck
I don't know what is the exact problem (Android Studio even showed the correct icon in the preview despite the app having the incorrect icon) but I resolved it by copying the same icon under a different name and changing the Manifest accordingly.
I had the same problem in Android Studio. All that was required was selecting Build -> Clean Project
from the menu and then build again. After that, the correct icon appeared in the compiled APK file.
In Android Studio 3.6 I was also facing the same problem. I just restarted my phone and every thing was fine. I hope that you just have to restart your phone.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With