Skip to content

Commit d79950d

Browse files
Try to use cmdline-tools correctly
1 parent eadfa83 commit d79950d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ci/android-install-sdk.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ set -ex
1919
# which apparently magically accepts the licenses.
2020

2121
ANDROID_SDK_URL=https://dl.google.com/android/repository
22-
ANDROID_SDK_ARCHIVE=platform-tools_r34.0.3-linux.zip
22+
ANDROID_SDK_ARCHIVE=commandlinetools-linux-9477386_latest.zip
2323

2424
mkdir sdk
2525
curl --retry 5 "$ANDROID_SDK_URL/$ANDROID_SDK_ARCHIVE" -O
@@ -48,7 +48,9 @@ case "$1" in
4848
;;
4949
esac;
5050

51-
ANDROID_SDK_BIN="/sdk/cmdline-tools/latest/bin
51+
mv sdk/cmdline-tools/* sdk/cmdline-tools/latest
52+
53+
ANDROID_SDK_BIN="./sdk/cmdline-tools/latest/bin"
5254

5355
# --no_https avoids
5456
# javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found

0 commit comments

Comments
 (0)