I've been wanting to add a lot of Android libraries to my project using Gradle.
If lets say 10 libraries were added, will it have negative side effects?
Like will it expand the app's size, eat more memory, or slow down the app?
I think the disadvantages is not a too large APK, or the possible method limit of 65536 without using multidex (https://developer.android.com/studio/build/multidex.html).
You can avoid this by using Proguard (https://developer.android.com/studio/build/shrink-code.html), this will drastically decrease the number of methods, because you will almost never use all parts of your libraries.
The real disadvantage in my opinion (I was involved in many different projects where libraries where used for almost everything you can imagine) is the maintainability. Some libraries increase the complexity and reduce debuggability if not used correctly, or if you don't really think about the correct usage.
So when you want to use a library, use it, but think about the following:
Hope this helps a little bit
regards Lukas
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