Gradle Task
Overview
Section titled “Overview”Run any Gradle task — tests, custom builds, code generation, or anything else your build script supports.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
projectDir | string | Yes | — | Absolute path to the Android project root |
task | string | Yes | — | Gradle task to run (e.g., test, lint, :app:connectedAndroidTest) |
args | string[] | No | — | Additional Gradle arguments (e.g., ['--info', '-Pfoo=bar']) |
Examples
Section titled “Examples”Run tests for my Android project
Run the assembleRelease Gradle task
Run the bundleRelease task with —info argument
Related Tools
Section titled “Related Tools”- List Gradle Tasks — See available tasks
- Gradle Build — Standard debug/release builds