Skip to content

Commit 8618def

Browse files
author
gopi2401
committed
fix: update Android SDK installation steps to include environment variable exports
1 parent 7e18f15 commit 8618def

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,11 @@ jobs:
5656
5757
- name: Install Android SDK, NDK, and CMake
5858
run: |
59-
yes | sdkmanager --licenses
60-
sdkmanager --install \
59+
export ANDROID_SDK_ROOT=$ANDROID_HOME
60+
export PATH=$ANDROID_SDK_ROOT/cmdline-tools/latest/bin:$ANDROID_SDK_ROOT/platform-tools:$PATH
61+
62+
yes | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager --licenses
63+
$ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager --install \
6164
"platforms;android-33" \
6265
"build-tools;33.0.2" \
6366
"ndk;27.0.12077973" \

0 commit comments

Comments
 (0)