Android build task (deprecated; use Gradle)
Azure Pipelines | Azure DevOps Server 2019 | TFS 2018 | TFS 2017 | TFS 2015
Use this task in a build or release pipeline to build an Android app using Gradle and optionally start the emulator for unit tests.
The Android Build task has been deprecated. Use the Gradle task instead.
The build agent must have the following capabilities:
Android SDK (with the version number you will build against)
Android Support Repository (if referenced by Gradle file)
|Location of Gradle Wrapper||
The location in the repository of the gradlew wrapper used for the build. For agents on Windows (including Microsoft-hosted agents), you must use the
See The Gradle Wrapper.
|Project Directory||Relative path from the repo root to the root directory of the application (likely where your build.gradle file is).|
Provide any options to pass to the Gradle command line. The default value is
See Gradle command line.
|Android Virtual Device (AVD) Options|
Name of the AVD to be started or created.
Note: You must deploy your own agent to use this option. You cannot use a Microsoft-hosted pool if you want to create an AVD.
Select this check box if you would like the AVD to be created if it does not exist.
|AVD Target SDK||Android SDK version the AVD should target. The default value is
|AVD Device||(Optional) Device pipeline to use. Can be a device index or id. The default value is
The Application Binary Interface to use for the AVD. The default value is
See ABI Management.
|Overwrite Existing AVD||Select this check box if an existing AVD with the same name should be overwritten.|
|Create AVD Optional Arguments||
Provide any options to pass to the
See Android Command Line.
|Start and Stop Android Emulator||
Check if you want the emulator to be started and stopped when Android Build task finishes.
Note: You must deploy your own agent to use this option. You cannot use a Microsoft-hosted pool if you want to use an emulator.
|Timeout in Seconds||
How long should the build wait for the emulator to start. The default value is
|Headless Display||Check if you want to start the emulator with no GUI (headless mode).|
|Emulator Optional Arguments||
(Optional) Provide any options to pass to the
|Delete AVD||Check if you want the AVD to be deleted upon completion.|