Upload your android library as an artifact to maven central or jcenter . Checkout is a guide that I fully deserve to be mentioned here to understand how to upload your android library to one of these central repositories, or both.
After downloading and syncing, you can simply reference your library using
dependencies {
compile 'com.your.groupid:artifactid:x.x.x'
}
etc.
source
share