If I have multiple modules in my android project and I add a library dependency (like dagger or appcompat) in (say) 2 of those modules, will that library add twice of its size to the final APK size or will there be just one copy of the library in the final APK?
Also what if I use different versions of the library in different modules, how much will the APK size increase?
I have the same question which you asked so I tested this scenario and create a project with more then one module and place the pdf dependency implementation 'com.github.barteksc:android-pdf-viewer:2.8.2' in different module and then build the apk but there is no change in size of apk either to put dependency in one module or more then one module.
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