In addition to publishing Android applications for users, you can publish libraries that developers can incorporate in their apps. When you publish an Android library you do four main tasks:
- You prepare the library for release. During the preparation step you configure settings such as the library name, the technical requirements to run or embed the library, and metadata that help the Android Gradle plugin (AGP) consume libraries.
- You configure publication variants. Publication variants allow you to publish different versions of your library, for example for debug versus release purposes.
- You configure test fixtures for publication. This helps ensure that your tests are robust and repeatable.
- You upload your library. This involves choosing a distribution mechanism and creating the actual publication.
If you’re a library author, make sure you read through each page in this topic for a detailed explanation of the considerations and steps involved in publishing your library.