I'm trying to reduce the apk size of my android app.
I've read this guide: https://developer.android.com/topic/performance/reduce-apk-size
I already converted all my images to vector drawable, so they are sightly smaller.
But when i click on generate apk, android studio does create an PNG version of each of my vector drawable and package it together with the vector in the final apk
So it was pointless since now my apk has both vector and png...
how can i force android studio to use the vector drawable making the user scale the images at runtime?
As the official doc says:
If the minimum API level is Android 4.4 (API level 20) and lower, and you haven't enabled the Support Library technique, Vector Asset Studio generates PNG files.
so check if your project meets this condition.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With