Skip to content

Commit

Permalink
Update build-apk.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NHLOCAL committed Nov 24, 2024
1 parent 3642c8d commit e59b281
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ jobs:
- name: Set Android SDK environment variables
run: |
echo "ANDROID_SDK_ROOT=$HOME/Android/Sdk" >> ~/.bashrc
echo "NDK_VERSION=25.2.9519653" >> ~/.bashrc
echo "SDK_VERSION=android-33" >> ~/.bashrc
echo "NDK_VERSION=27.2.12479018" >> ~/.bashrc
echo "SDK_VERSION=android-35" >> ~/.bashrc
echo "PATH=$ANDROID_SDK_ROOT/tools/bin:$PATH" >> ~/.bashrc
source ~/.bashrc
Expand All @@ -51,8 +51,8 @@ jobs:
$ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT --list | grep ndk
# Install a supported NDK version (replace with a valid version from the list)
yes | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT --install "ndk;27.2.12479018" --channel=3 # Or another suitable NDK version/channel
yes | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT --install "platforms;android-35"
yes | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT --install "ndk;$NDK_VERSION" --channel=3 # Or another suitable NDK version/channel
yes | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT --install "platforms;$SDK_VERSION"
# Alternatively, install NDK manually if needed (uncomment if the above fails)
# - name: Download and install NDK manually
Expand Down

0 comments on commit e59b281

Please sign in to comment.