view raw
iHowell iHowell - 11 months ago 43
Android Question

Why do I still have png's after implementing vector drawable support library?

Pretty much what the title says. I have 2 png's outside of pure xml files for vector drawables and I'm using the vector drawable support library.

android {
defaultConfig {
vectorDrawables.useSupportLibrary = true
dependencies {
compile ''

I decompiled the apk that builds from this with apktool and found that there are still about 150 png's in my res folder, even though I only have 2 in my res. Did I do something wrong in the implementation?


Because VectorDrawableCompat generates PNGs at compile time.

It's neccesary, because older APIs (<19) do not support vector drawables.

For not getting the PNGs, you must set minSDK to 21.