Reputation: 518
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.
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"
I select the foreground image and then click "Next"
After than I see the following screen.
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
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