In addition to publishing Android apps for users, you can publish libraries that developers can incorporate in their apps. There are four main tasks when publishing an Android library:
- 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 the metadata that helps the Android Gradle plugin (AGP) consume libraries.
- Configure publication variants. Publication variants let you publish different versions of your library, such as for debug versus release.
- Configure test fixtures for publication. This helps ensure that your tests are robust and repeatable.
- Upload your library. This involves choosing a distribution mechanism and creating the actual publication.
If you're a library author, read through each page in this topic for a detailed explanation of the considerations and steps involved in publishing your library.