Building an Android Library Tutorial

See how to create an Android library using Android Studio, publish the library to a Maven repository on Bintray, and host the library in the public JCenter repository. By Nishant Srivastava.

2.7 (7) · 1 Review

Download materials
Save for later
Share
You are currently viewing page 4 of 4 of this article. Click here to view the first page.

Where to Go From Here?

You can find the final project in the zip file you can download using the button at the top and bottom of the tutorial.

You can see my version of the source code on GitHub here and the published library here.

Contrary to usual belief, Android library development is different from app development. The differentiating factor is that apps target certain platforms and are consumed by users directly, but an Android library is consumed by Android developers and has to cover a much larger spectrum of platforms to enable its use by app supporting lower or higher platforms alike.

Hopefully, after finishing this tutorial you have a solid understanding of building and publishing better Android libraries.

If you want to learn more about Android library development, checkout Google’s official documentation.

I hope you enjoyed this tutorial on building an Android library, and if you have any questions or comments, please join the forum discussion below!

Nishant Srivastava

Contributors

Nishant Srivastava

Author

Joe Howard

Final Pass Editor

Over 300 content creators. Join our team.