Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions docs/crossbundle-install-command.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,22 @@ Note: Android studio install cmdline tools into `$SDK_ROOT/cmdline-tools/<versio

The [sdkmanager](https://developer.android.com/studio/command-line/sdkmanager) is a command-line tool that allows you to view, install, update, and uninstall packages for the Android SDK.

To see all available options use the -h flag. List installed and available packages:
To install packages use the command below. We prefer to use --preferred-tools flag to install minimal required tools needed for crossbundle correct working. This command will setup build-tools, android-ndk and android platforms:

```sh
crossbundle install sdk-manager --list
crossbundle install sdk-manager --preferred-tools
```

To install use the command below. We prefer to install the following tools:
Also you can install packages manually. To see all available tools use the -h flag. List installed and available packages:

```sh
crossbundle install sdk-manager --install "build-tools;30.0.0" "ndk;23.1.7779620" "platforms;android-30"
crossbundle install sdk-manager --list
```

# or install preferred packages
# crossbundle install sdk-manager --preferred-tools
And then enter the command. The command will install android-ndk-23 on your PC.

```sh
crossbundle install sdk-manager --install "ndk;23.1.7779620"
```

The command will install packages into `$HOME\AppData\Local\Android\Sdk\` for Windows, `$HOME/Library/Android/sdk/` for macOS, and `$HOME/Android/sdk/` for Linux.
Expand Down