

The Android Emulator is currently available only on the Hosted macOS agent.Ĭreate the Bash task and copy paste the code below in order to install and run the emulator.ĭon't forget to arrange the emulator parameters to fit your testing environment. Zipaligning reduces the RAM consumed by the application. If your build doesn't already sign and zipalign the APK,Īdd the Android Signing task to the YAML.Īn APK must be signed to run on a device instead of an emulator. Such as AndroidApps/MyApp/gradlew or $(faultWorkingDirectory)/AndroidApps/MyApp/gradlew.Īdjust the tasks value for the build variant you prefer, such as assembleDebug or assembleRelease.įor more information, see the following Google Android development documentation: The file path value should be similar to the root of the repository,


Such as AndroidApps/MyApp or $(faultWorkingDirectory)/AndroidApps/MyApp.Īdjust the gradleWrapperFile value if your gradlew file isn't in the root of the repository. The directory value should be similar to the root of the repository, # Īdjust the workingDirectory value if your gradlew file isn't in the root of the repository. For more information about your options, see the Gradle task. Gradle is a common build tool used for building Android projects. To make changes to the YAML file, select the pipeline in the Pipelines page, and then Edit the azure-pipelines.yml file. You have a working YAML file ( azure-pipelines.yml) in your repository that's ready for you to customize. Select Approve and install on the screen that follows.Īzure Pipelines generates a YAML file for your pipeline.Ĭommit directly to the main branch, and then choose Run again. Select the -android repository that you previously forked. You might be redirected to GitHub to sign in. Select GitHub as the location of your source code. Select Pipelines > Create pipeline or New pipeline. Sign in to your Azure DevOps organization and go to your project. If you don't have a project, create one now.ĭo the following tasks to set up a pipeline for a sample Android application.įork the following repository to your GitHub account to get the code for a simple Android application.

If you don't have a GitHub account, create one now. You can set up pipelines to automatically build, test, and deploy Android applications.
