|
1 | 1 | # Android SDK setup instructions |
2 | 2 | ## Android SDK |
3 | 3 | If you already have Android Studio installed, most likely you also have Android SDK. If you don't have a local Android SDK installation, you can download it from [here](https://developer.android.com/studio/index.html#downloads). |
4 | | -You don't need the whole bundle, so look for files whose names start with `android-sdk_` and choose the one appropriate for your system. Extract the archive to a suitable location after the download is complete. |
| 4 | +You don't need the whole bundle, so look for files whose names start with `sdk-tools-` and choose the one appropriate for your system. Extract the archive to a suitable location after the download is complete. For example, `%userprofile%\android-sdk\` (for Windows) or `~/android-sdk/` (for Linux/macOS). |
5 | 5 |
|
6 | | -Start the SDK Manager. |
| 6 | +You will need the following packages: |
7 | 7 |
|
8 | | -* **Windows** Run `SDK Manager.exe` in the main SDK directory. |
9 | | -* **Linux/macOS** Run `android` in `[android-sdk]/tools` |
| 8 | +* **Android SDK Tools** |
| 9 | +* **Android SDK Platform-tools** |
| 10 | +* **Android SDK Build-tools** - `v25` |
| 11 | +* **Android 7.1.1 (API 25)**: |
| 12 | + * **SDK Platform** |
10 | 13 |
|
11 | | -After the SDK Manager finishes loading install the following components: |
| 14 | +If you are using Android Studio, you can use the integrated SDK Manager to download and install them. You can then skip to the [Set ANDROID_HOME](#set-android_home) section below. If not, you can use the command line tools you downloaded earlier. The following steps are for the command line tools only. |
12 | 15 |
|
13 | | - * **Android SDK Tools** |
14 | | - * **Android SDK Platform-tools** |
15 | | - * **Android SDK Build-tools** - `v25` |
16 | | - * **Android 7.1.1 (API 25)**: |
17 | | - * **SDK Platform** |
| 16 | +Go to `tools/bin/` and install the required packages: |
| 17 | + |
| 18 | +* **Windows** Run `sdkmanager.bat "tools" "platform-tools" "build-tools;25.0.0" "platforms;android-25"` |
| 19 | +* **Linux/macOS** Run `./sdkmanager "tools" "platform-tools" "build-tools;25.0.0" "platforms;android-25"` |
18 | 20 |
|
19 | 21 | ## Set ANDROID_HOME |
20 | 22 | After the Android SDK is ready to use, you need to set a system path variable pointing to the Android SDK directory. |
|
0 commit comments