The Complete Guide to Creating and Publishing an Android Library

Etienne Lawlor
AndroidPub
Published in
9 min readSep 14, 2015

--

I was always amazed at how many useful third party libraries the Android developer community has produced. And for the longest time, I wanted to contribute something but didn’t know how. After browsing though other blog posts about how to publish an Android Library I still found that there were some missing details and that all the information was in different places. So I am going to go through this process and show what worked for me.

For starters, I use Android Studio, which uses Gradle as the official build system, to set up all my Android projects. Make sure to download the latest version of Android Studio .

Terminology

Before we begin there is some terminology to get familiar with.

Project — A project in Android Studio represents a complete Android app. Android Studio projects consist of one or more modules. A project in Android Studio is like a workspace in Eclipse.

Module — A module is a component of your app that you can build, test, or debug independently. Modules contain the source code and resources for your app. A module in Android Studio is like…

--

--