Skip to content

Commit 2741e25

Browse files
Update README.md
1 parent ed89994 commit 2741e25

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,18 @@
33
![Build & Test](https://github.com/android-actions/setup-android/workflows/Build%20&%20Test/badge.svg)
44

55
This action sets up the Android SDK tools by:
6-
- Downloading the SDK commandline tools
7-
- Accepting the SDK licenses
8-
6+
- Downloading the SDK commandline tools, if the current version (7.0) is not found in either `$ANDROID_SDK_ROOT` or `$HOME/.android/sdk`.
7+
- Accepting the SDK licenses.
8+
- Installing `tools` and `platform-tools`.
9+
- Adding `platform-tools` (contains adb) and `cmdline-tools/7.0/bin` (contains sdkmanager) to `$PATH`.
10+
- Setting up problem [matchers](/matchers.json).
11+
12+
On Windows 2016 runners, this action also checks if `$ANDROID_SDK_ROOT` path contains spaces.
13+
If it does - it moves SDK to a path without spaces. This is needed because spaces are highly problematic:
14+
```
15+
C:\windows\system32\cmd.exe /D /S /C ""C:\Program Files (x86)\Android\android-sdk\cmdline-tools\3.0\bin\sdkmanager.bat" --licenses"
16+
Error: Could not find or load main class Files
17+
```
918

1019
# Usage
1120

0 commit comments

Comments
 (0)