N
N
Nikolay Alekseev2019-11-25 15:42:44
Java
Nikolay Alekseev, 2019-11-25 15:42:44

Is it possible, and if possible, how to create a class library for Android?

Good day to all!
I am a heavily beginner android developer, so the point of my question might be silly.
But I couldn't find the answer on the first page of Google.
I am writing an application, I have created a certain functionality, and now a situation has arisen in which I need to write another application, but two-thirds of the functionality will be duplicated. According to the experience of programming under Windows, in such cases I usually write a dll, which I then connect to other projects.
Can you please tell me if there is an opportunity to create something similar in android Studio?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Firsov, 2019-11-27
@VariusRain

Yes, of course, you can make a separate module, then assemble AAR from it (analogous to JAR for Android) and distribute it as a file. Or through a public repository, then your library is included in third-party projects as a dependency in Gradle.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question