發布程式庫
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
除了為使用者發布 Android 應用程式之外,您也可以發布讓開發人員整合至應用程式中的程式庫。發布 Android 程式庫時有四項主要任務:
如果您是程式庫的作者,請參閱本文件中每一頁的詳細說明,以瞭解發布程式庫的相關考量和步驟。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-05-28 (世界標準時間)。
[null,null,["上次更新時間:2025-05-28 (世界標準時間)。"],[],[],null,["# Publish your library\n\nIn addition to publishing Android apps for users, you can publish\nlibraries that developers can incorporate in their apps. There are four main\ntasks when publishing an Android library:\n\n- [Prepare the library for release](/studio/publish-library/prep-lib-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.\n- [Configure publication\n variants](/studio/publish-library/configure-pub-variants). Publication variants let you publish different versions of your library, such as for debug versus release.\n- [Configure test fixtures for publication](/studio/publish-library/configure-test-fixtures). This helps ensure that your tests are robust and repeatable.\n- [Publish multiple libraries as one](/studio/publish-library/fused-library). Use the Fused Library to publish multiple libraries in a single library.\n- [Upload your library](/studio/publish-library/upload-library). This involves choosing a distribution mechanism and creating the actual publication.\n\nIf you're a library author, read through each page in this\ndocument for a detailed explanation of the considerations and steps involved in\npublishing your library."]]