You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: Add android-cli resource (auto-generated from issue #68)
* fix: macOS install and tests. Moved android studios to it's own folder
* feat: add android studio version completions
* fix: skip tests for linux arm (unsupported)
* feat: made android cli emulator a stateful parameter instead. Improved docs for android
* feat: improved documentation (capitalized folder names)
* fix: added warning message for tart clone if disk is not accessible. Added apply note for android cli. Fixed android cli emulator list
* feat: add beta completions
* feat: add retry to android studio download
* feat: add backup wget as well for linux
* chore: bump version
---------
Co-authored-by: kevinwang5658 <20214115+kevinwang5658@users.noreply.github.com>
Co-authored-by: kevinwang <kevinwang5658@gmail.com>
description: Reference pages for the Android CLI resources
4
+
---
5
+
6
+
The `android-cli` resource installs and configures [Android CLI](https://developer.android.com/tools/agents/android-cli), Google's command-line tool for managing the Android development environment. It manages the CLI itself, SDK packages, and Android Virtual Devices (AVDs) in a single resource.
7
+
8
+
On macOS, Android CLI is installed via the official curl script (ARM64 and x86_64 supported). On Linux, only AMD64/x86_64 is supported.
9
+
10
+
## Parameters
11
+
12
+
-**sdkPath**: *(string)* Path to the Android SDK directory. Written to `~/.androidrc` as `--sdk=<path>`. Defaults to the android CLI's built-in default location if omitted.
13
+
-**sdkPackages**: *(string[])* Android SDK packages to install declaratively. Package paths use forward-slash notation (e.g. `platforms/android-35`, `build-tools/35.0.0`, `cmdline-tools/latest`, `platform-tools`, `system-images/android-35/google_apis_playstore/x86_64`). Run `android sdk list --all` to see all available identifiers.
14
+
-**emulators**: *(string[])* Android emulator profiles to create as AVDs. Each string is a hardware profile name (e.g. `medium_phone`, `pixel_9`). Emulators are always created after `sdkPackages` are installed. Run `android emulator create --list-profiles` to see available profiles.
15
+
16
+
## Example usage
17
+
18
+
Install the CLI with essential SDK packages:
19
+
20
+
```json title="codify.jsonc"
21
+
[
22
+
{
23
+
"type": "android-cli",
24
+
"sdkPackages": [
25
+
"cmdline-tools/latest",
26
+
"platform-tools",
27
+
"platforms/android-35",
28
+
"build-tools/35.0.0"
29
+
]
30
+
}
31
+
]
32
+
```
33
+
34
+
Full Android development environment with an emulator:
0 commit comments