adb_gradle
Execute a Gradle build task in an Android project directory. Supports custom arguments and timeout settings.
Instructions
Run a Gradle task in an Android project directory
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the Android project root (containing gradlew) | |
| task | Yes | Gradle task (e.g., 'assembleDebug', 'installDebug', 'clean') | |
| args | No | Additional Gradle arguments as an array of strings (e.g., ['-Pversion=1.0', '--info']). Use an array — not a space-separated string — so arguments containing quoted values are preserved as single tokens. | |
| timeout | No | Build timeout in milliseconds (30s-30min, default 5min). V5 fix: large multi-module Android projects (60+ modules) routinely exceed the default; raise this for clean builds of bigger projects. |