diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index 13484fb..b2774ae 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -30,7 +30,7 @@ jobs: - name: Switch to Java 8 run: | - sudo update-alternatives --set java $(update-alternatives --list java | grep java-8-openjdk | tail -1) + sudo update-alternatives --set java $(update-alternatives --list java | grep java-8-openjdk | awk '{print $3}') java -version # Verify Java version - name: Accept Android SDK licenses