Skip to content

Commit

Permalink
CI: Update tests workflow java to 17
Browse files Browse the repository at this point in the history
Address CI error in running tests

java.lang.UnsupportedClassVersionError: com/android/sdklib/tool/sdkmanager/SdkManagerCli has been compiled
by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime
only recognizes class file versions up to 55.0
  • Loading branch information
justin-stephenson committed Jun 12, 2024
1 parent 2c43f96 commit 4786d19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ jobs:
- name: Checkout project sources
uses: actions/checkout@v3

- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 11
java-version: 17
distribution: 'adopt'
cache: 'gradle'

- name: Run tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
api-level: 31
script: ./gradlew connectedAndroidTest --stacktrace
disable-animations: true
disable-spellchecker: true

0 comments on commit 4786d19

Please sign in to comment.