I have an application with minSdkVersion = 21, which now uses a vector that can be used as a launch icon.
Google Play rejects the app using
You need to check the icon inside your APK because it is not valid
since it should run the icons in PNG format.
I would like to generate PNG files for the launcher icon as part of the build process, as it is, if I reduce minSdkVersion to 20 (but I cannot do this because the application is incompatible with 20 or older). Is it possible?
EDIT: To clarify, it works when minSdkVersion is <21, since gradle takes care of generating png versions of vector drawings. But when minSdkVersion> = 21, gradle leaves the vector drawings as is, which does not work for startup icons. The question is whether it is possible to make gradle build png versions of vector drawings for startup images even at minSdkVersion> = 21.
source
share