Skip to content

Commit

Permalink
Bump the Java version to 17 in the workflow file
Browse files Browse the repository at this point in the history
The error message from the GitHub Actions workflow:
```text
An exception occurred applying plugin request [id: 'com.android.library']
> Failed to apply plugin 'com.android.internal.library'.
   > Android Gradle plugin requires Java 17 to run. You are currently using Java 11.
      Your current JDK is located in /usr/lib/jvm/temurin-11-jdk-amd64
      You can try some of the following options:
       - changing the IDE settings.
       - changing the JAVA_HOME environment variable.
       - changing `org.gradle.java.home` in `gradle.properties`.
```
  • Loading branch information
ShreckYe committed Nov 3, 2024
1 parent 325f4ae commit 0b6cd61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/demo-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: "11"
java-version: "17"
distribution: "temurin"

- name: Setup Gradle
Expand Down

0 comments on commit 0b6cd61

Please sign in to comment.