Skip to content

Commit

Permalink
Fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
adimiz1 committed Jan 7, 2024
1 parent dc7877e commit 9f66574
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/android-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,16 @@ jobs:
mkdir -p $ANDROID_HOME
wget "https://dl.google.com/android/repository/commandlinetools-linux-7302050_latest.zip" -O commandlinetools.zip
unzip -q commandlinetools.zip -d $ANDROID_HOME/
yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager "platforms;android-${TARGET_VERSION}" --sdk_root=$ANDROID_HOME
yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager "build-tools;${ANDROID_BUILD_TOOLS_VERSION}" --sdk_root=$ANDROID_HOME
echo 'export PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin' >> $GITHUB_ENV
source $GITHUB_ENV
- name: Accept Android Licenses
run: yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses
run: yes | sdkmanager --licenses

- name: List Available Emulators
run: |
sdkmanager --list
emulator -list-avds # Check available AVDs
- name: Install SDK components
run: |
Expand Down

0 comments on commit 9f66574

Please sign in to comment.