設定持續整合環境
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
持續整合系統可讓您在每次更新來源控制系統時,自動建構並測試您的應用程式。您可以使用任何持續整合工具啟動 Gradle 版本來建立您的 Android Studio 專案。
如要在建構作業中執行測試,您必須將持續整合伺服器設為使用 Android Emulator,或使用 Firebase Test Lab 執行測試。
如要進一步瞭解如何透過 Jenkins 和 Firebase Test Lab 為 Android 專案設定持續整合,請參閱「開始使用持續整合 (CI) 系統進行測試」一文。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[[["容易理解","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-07-27 (世界標準時間)。"],[],[],null,["# Set up continuous integration\n\nContinuous integration systems let you automatically build and test your app\nevery time you check in updates to your source control system. You can use any\ncontinuous integration tool that can initiate a Gradle build to build your\nAndroid Studio projects.\n\nTo run tests as part of the build, you need to either configure\nyour continuous integration server to use the\n[Android Emulator](/studio/run/emulator-commandline) or use\n[Firebase Test Lab](https://firebase.google.com/docs/test-lab/)\nto run your tests.\n\nFor specific information about configuring continuous integration for your\nAndroid project using Jenkins and Firebase Test Lab, see\n[Start testing with continuous integration (CI)\nsystems](https://firebase.google.com/docs/test-lab/continuous).\n| **Note:** You must accept the license agreements for any packages your app requires on each machine where you build your app. If you have not installed Android Studio on your continuous integration server, you can [accept licenses from the\n| command line using\n| `sdkmanager`](/studio/command-line/sdkmanager#accept-licenses)."]]