File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 3
3
![ Build & Test] ( https://github.com/android-actions/setup-android/workflows/Build%20&%20Test/badge.svg )
4
4
5
5
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
+ ```
9
18
10
19
# Usage
11
20
You can’t perform that action at this time.
0 commit comments