Muddassir Ahmed
Muddassir Ahmed

Reputation: 518

Android Studio - Importing Launcher Assets only Updates ic_launcher-playstore.png and the launcher icons under mipmap folders get deleted

I am using Android Studio version 4.2.1.

I have the regular android resource structure with the app icon residing in the mipmap folders.

enter image description here

I am doing the following steps to change the app icon.

I add an image asset by right clicking the res folder -> Going to "New" -> "Image Asset" enter image description here

I select the foreground image and then click "Next"

After than I see the following screen. enter image description here

When I click "Finish" all of the icons in the mipmap folders get deleted and I am unable to build the app as my xml layouts have some references to the launcher icons and they are being deleted by this import process. This didn't happen before to me only happening with Android Studio version 4.2.1

Upvotes: 0

Views: 1163

Answers (1)

Muddassir Ahmed
Muddassir Ahmed

Reputation: 518

I was able to import an image asset by changing the name from ic_launcher to a different name and then deleting the old launcher icon manually through "Finder" on mac, and renaming the new images to ic_launcher. To me, it seems to be a bug in Android Studio 4.2.1.

Upvotes: 1

Related Questions