I want to know that which is the best way to use external libraries in android studio and workflow of it. Either to compile them directly in build.gradle and using its functionalities or copy the whole external library in my project.
Some doubts:- If i am using first way then how it works, is it connected to internet or i can have problems in future if that library is deleted from github or somewhere else
And if i am using second way then it is true that it will increase the size of my apk but it will not cause any problem in future because it is secured in my project and there is no chance of losing it as in the first way it can be deleted. Please correct my doubts because i am not sure what is happening there?