android_gradle_daemons
List Gradle/Kotlin daemons and identify which lock build outputs; optionally stop idle daemons to fix 'file is being used by another process' errors.
Instructions
List Gradle and Kotlin daemons, show which ones lock a project's build outputs, optionally stop some.
Explains the classic "R.jar is being used by another process": an idle daemon from a different Gradle user home (e.g. an agent terminal's sandbox) keeps build outputs open.
Args: project_dir: Gradle root whose build outputs to check for locks. stop: None (just list), "lockers" (IDLE daemons holding this project's outputs), "foreign" (IDLE daemons outside Android Studio's Gradle user home - Studio can never reuse them), or "all-idle". Busy daemons and the IDE are never stopped.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "android_gradle_daemons"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stop | No | ||
| project_dir | No |