Skip to content

Commit b19a2f9

Browse files
committed
Update the Android SDK
1 parent 1e9bf25 commit b19a2f9

1 file changed

Lines changed: 10 additions & 12 deletions

File tree

.github/workflows/scripts/android/android-emulator-tests.sh

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,18 @@ install_package() {
3737
eval "$INSTALL_PACKAGE_COMMAND $1"
3838
}
3939

40-
install_package android-sdk
40+
install_package openjdk
4141

4242
# download and install the Android SDK
43-
#mkdir ~/android-sdk
44-
#cd ~/android-sdk
45-
#curl --connect-timeout 30 --retry 3 --retry-delay 2 --retry-max-time 60 -fsSL -o commandlinetools.zip https://dl.google.com/android/repository/commandlinetools-linux-13114758_latest.zip
46-
#unzip commandlinetools.zip
47-
48-
#echo "CHECKING FOR ANDROID SDK"
49-
#find . -type f -name sdkmanager || true
50-
#echo "DONE CHECKING FOR ANDROID SDK"
51-
#export PATH=${PATH}:${PWD}/cmdline-tools/bin
52-
#export ANDROID_HOME=${PWD}
53-
#cd -
43+
mkdir ~/android-sdk
44+
cd ~/android-sdk
45+
export ANDROID_HOME=${PWD}
46+
47+
curl --connect-timeout 30 --retry 3 --retry-delay 2 --retry-max-time 60 -fsSL -o commandlinetools.zip https://dl.google.com/android/repository/commandlinetools-linux-13114758_latest.zip
48+
unzip commandlinetools.zip
49+
50+
export PATH=${PATH}:${PWD}/cmdline-tools/bin
51+
cd -
5452

5553
# install and start an Android emulator
5654
sdkmanager --list_installed

0 commit comments

Comments
 (0)