Google Play 服務總覽
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Google Play 服務在 Android 平台上提供一系列豐富多樣的 SDK,可協助您打造應用程式、加強隱私保護與安全性、吸引使用者及拓展業務。如圖 1 所示,這些 SDK 只需要在應用程式中加入輕量型用戶端程式庫。在執行階段,用戶端程式庫會與在主要 Google Play 服務應用程式中執行的完整實作項目通訊。
Google Play 服務提供共用的用戶端實作項目,因此:
- 有助於最佳化裝置端資源 (例如儲存空間和記憶體),進而提升應用程式品質和使用者的整體體驗。
- 自動更新,不受 OS、OEM 或應用程式更新影響,因此使用者能更快收到改善項目和錯誤修正。
- 提供 Android 6.0 (API 級別 23) 的回溯相容性,適用於各種外型規格,讓您輕鬆觸及更多使用者。
圖 1. Google Play 服務會定期更新,以改善功能並修正錯誤。
Google Play 服務的運作方式
SDK
每個 Google Play 服務 SDK 都包含輕量型用戶端程式庫,以及與 Google Play 服務應用程式中執行的服務互動的 API。此外,這些程式庫也提供輔助工具,可妥善處理執行階段問題,例如服務遺失、停用或過時。啟用程式碼縮減功能後,R8 最佳化工具會移除未使用的程式碼,進一步減少 SDK 對套件大小的影響。
如要使用新的 Google Play 服務功能或產品,請在 Google Maven 存放區發布新版 SDK 時升級。
服務
Google Play 服務包含一組核心的裝置端背景服務,可在所有 Google 認證的 Android 裝置上執行。
Google Play 服務的自動更新與電信業者、OS 或 OEM 系統映像檔更新無關。一般來說,只要裝置搭載 Android 6.0 以上版本,並安裝 Google Play 服務且有足夠儲存空間,就會自動接收更新。這表示使用者能更快獲得改善項目和錯誤修正,而您也能充分運用最新的 API,同時觸及 Android 生態系統中的大多數裝置。不支援搭載舊版 Android 6.0 的裝置,或未安裝 Google Play 服務的裝置。
後續步驟:設定應用程式
如要在應用程式中使用 Google Play 服務 API,請參閱這份設定指南。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-08 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-08-08 (世界標準時間)。"],[[["Google Play services optimizes app performance and user experience by providing shared, client-side implementations of SDKs, minimizing resource usage."],["Automatic updates to Google Play services ensure users receive the latest improvements and bug fixes quickly, independent of OS or device updates."],["Google Play services offers broad compatibility, supporting Android 6.0 (API level 23) and above, various form factors, enabling wider user reach with less development effort."],["SDKs powered by Google Play services utilize lightweight client libraries, reducing app size and ensuring efficient interactions with Google services."],["Google Play services runs essential Google services in the background on certified Android devices, delivering automatic updates for enhanced functionality and security."]]],["Google Play services provides lightweight SDK client libraries for Android apps, which interact with shared services on the device. These services optimize device resources, receive automatic updates independent of OS or app updates, and offer backward compatibility to Android 6.0. Developers can update SDKs to access new features through the Google Maven repository. Automatic updates are delivered to devices with Google Play services installed and running Android 6.0 or later. R8 optimizer can reduce the footprint of each SDK.\n"]]