Gradle Build
Overview
Section titled “Overview”Build an Android project using Gradle. Supports debug and release variants with optional module targeting.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
projectDir | string | Yes | — | Absolute path to the Android project root |
variant | "debug" | "release" | No | debug | Build variant |
module | string | No | — | Specific module to build (e.g., :app) |
stacktrace | boolean | No | false | Include full stacktrace on error |
Examples
Section titled “Examples”Build my Android project
Build my app in release mode
Build the :feature module in debug mode with stacktrace
Related Tools
Section titled “Related Tools”- Gradle Clean — Clean before rebuilding
- Gradle Task — Run custom Gradle tasks
- Android Lint — Check code quality after building