android_install_toolchain
Installs JDK 17, Gradle, and Android SDK for a specified project into a configurable root, then optionally builds the source.
Instructions
为指定项目安装 JDK17 / Gradle / Android SDK(全部落在 root 目录,幂等可重跑)。可选顺便拉源码并构建一次。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"profile": "<profile>"
},
"name": "android_install_toolchain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | 安装根目录,默认按平台选择 | |
| profile | Yes | profiles.json 里的项目名 | |
| buildAfter | No | 装完是否立刻构建一次 | |
| buildTools | No | 如 ['34.0.0'] | |
| sdkPlatforms | No | 如 ['android-34'] | |
| gradleVersion | No | 如 8.7;默认取 profile 配置 |