File tree Expand file tree Collapse file tree
.github/workflows/scripts/android Expand file tree Collapse file tree Original file line number Diff line number Diff 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
5654sdkmanager --list_installed
You can’t perform that action at this time.
0 commit comments