Benzo
Benzo

Reputation: 81

Android Studio 4.2.1 deleting mipmap folders after change my icon?

When i try to change my app icon, Android Studio deleting mipmap folders!!!

enter image description here

enter image description here

Here are mipmap folders but when I check them i find them empty!

enter image description here

Upvotes: 1

Views: 938

Answers (2)

SagaRock101
SagaRock101

Reputation: 159

I was facing the same issue and followed the accepted answer , but still rebuilding the files inside mipmap/ic_launcher*.xml folder were getting deleted back, later I updated the Android Studio from Dolphin to Electric Eel and It started to work fine

Upvotes: 0

cc8080
cc8080

Reputation: 86

I was having a similar problem changing the launcher icon. When I would do a build some of the mipmap files would be deleted. I found that launcher icons for API 25 and below were affected. On the target system, the default launcher icon was shown rather than my custom icon.

Here's what seemed to work: I used File Explorer to delete all of the ic_launcher* files, then used Android Studio to create a new ic_launcher Image Asset. All of the folders were populated and the files stayed in place when I did a build. The launcher icons were correct on all API levels.

Upvotes: 4

Related Questions