-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathandroid-sdk-update.sh
More file actions
executable file
·31 lines (26 loc) · 841 Bytes
/
android-sdk-update.sh
File metadata and controls
executable file
·31 lines (26 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# This script will update
# Android tools, build tools and platform tools
# Android SDKs from 4.2 (android-17) to 8.1 (android-27)
#
# Notes: This script will work on both Linux and macOS hosts!
set -e
set -x
PACKAGES=()
PACKAGES+=("platform-tools")
PACKAGES+=("tools")
PACKAGES+=("build-tools;27.0.3")
PACKAGES+=("extras;android;m2repository")
PACKAGES+=("extras;google;m2repository")
PACKAGES+=("platforms;android-27")
PACKAGES+=("platforms;android-26")
PACKAGES+=("platforms;android-25")
PACKAGES+=("platforms;android-24")
PACKAGES+=("platforms;android-23")
PACKAGES+=("platforms;android-22")
PACKAGES+=("platforms;android-21")
PACKAGES+=("platforms;android-19")
PACKAGES+=("platforms;android-18")
PACKAGES+=("platforms;android-17")
echo "Update Android SDK"
yes | "${ANDROID_HOME}/tools/bin/sdkmanager" "${PACKAGES[@]}"