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 655c1f7 commit a8c0179
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build-apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,14 @@ jobs:
with:
distribution: 'temurin'
java-version: '8'
# This line is crucial: force the use of Java 8
jdkFile: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/8.0.432-6/x64/jdk8u432-b06/openjdk-8u432-b06_linux-x64_bin.tar.gz

- name: Switch to Java 8
run: |
sudo update-alternatives --set java $(update-alternatives --list java | grep java-8-openjdk | tail -1)
java -version # Verify Java version
- name: Accept Android SDK licenses
run: yes | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager --licenses


- name: Install Flutter SDK
Expand Down

0 comments on commit a8c0179

Please sign in to comment.