I has this issue when I was signing my android app bundle (.aab) to upload it to Google Play.

The solution for this is make sure that when you are adding a new image asset select the right option. I was doing the release for my app but when I added the image asset I chose only for debug.
That was the reason the compiler couldn’t find the my icon resource in release mode. So I added my image in release mode and I was able to compile my application well.

Here you have a video if you need more help: