Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question