In a big project while former developers already worked on, you can find dependencies in gradle
that doesn't have any usages at all.
Do those dependencies affect apk
size? and how dependencies affect apk
size, what if you're just using one method from a library, does this mean that all the library files attached to your apk
.
Yes, unused dependencies do increase the apk size.
Enabling
can analyze all the bytecode and remove unused classes and methods.
It is good to remove all the unused dependencies from gradle