I was trying to build a new app on Android and got a whole bunch of errors like the following:
[mipmap-hdpi-v4/ic_launcher] C:\code\mmm\android\app\src\main\res\mipmap-hdpi\ic_launcher.png
[mipmap-hdpi-v4/ic_launcher] C:\code\mmm\android\app\src\main\res\mipmap-hdpi\ic_launcher.webp:
Error: Duplicate resources
I had used a couple of tools to generate these various resources. Apparently, I over did it! :) Until I tried to build an aab, I couldn't say if any were redundant.
Can I assume that for any directory which contains a png and an equivalent webp, I ought to delete the png and keep webp?
You can keep .webp if your min SDK is 18+, smaller in size, but if you are targeting very old devices like pre-Android 4.3, keep PNG. I would suggest going with the .webp