Set Up continuous integration

Continuous integration systems let you automatically build and test your appevery time you check in updates to your source control system. You can use anycontinuous integration tool that can initiate a Gradle build to build yourAndroid Studio projects.

To run tests as part of the build, you need to either configureyour continuous integration server to use theAndroid Emulator or useFirebase Test Labto run your tests.

For specific information about configuring continuous integration for yourAndroid project using Jenkins and Firebase Test Lab, seeUsing Firebase Test Lab for Android with continuous integration systems.

Note: You must use the SDK Manager to acceptthe license agreements for any packages your app requires on each machinewhere you build your app. If you have not installed Android Studio on yourcontinuous integration server, you must manually export the license agreementsto your build server from a machine where they have been accepted using the SDKManager before you can build your app on the server. To learn more about thelicense export process, readAuto-download missingpackages with Gradle.