iHowell iHowell - 4 months ago 13x
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 'com.android.support:appcompat-v7:23.2.0'

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.