设置持续集成
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
借助持续集成系统,每次签入源代码控制系统的更新时,您都可以自动构建并测试应用。您可以使用任何可启动 Gradle 构建的持续集成工具来构建您的 Android Studio 项目。
如需在构建期间运行测试,您需要配置持续集成服务器以使用 Android 模拟器,或者使用 Firebase Test Lab,才能运行测试。
如需详细了解如何使用 Jenkins 和 Firebase Test Lab 为您的 Android 项目配置持续集成,请参阅开始使用持续集成 (CI) 系统进行测试。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):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)."]]