Java – Android Studio: Developing common java libraries to be shared among apps

Android Studio: Developing common java libraries to be shared among apps… here is a solution to the problem.

Android Studio: Developing common java libraries to be shared among apps

I’ve been doing research through SO and seeing a lot of talk about linking applications to libraries, but in all cases (I found) libraries are imported into applications.

As I understand it, importing copies the library into the application. In our case, we have several common Java source libraries (L1, L2, etc.) that we are actively developing, and we want multiple applications (A1, A2, etc.) to reference. This means that the library cannot be imported/copied to the application because the library changes too frequently.

The library was created as a separate Android project (we tried creating a module/Android library, but it didn’t work well). We use Android Studio as our IDE.

How do I link libraries without copying them into my project?
Thank you.

Related Problems and Solutions