Build error with Gradle 8.0.0

During the current build cycle, the recent update of my app failed.

From the log, I see this is due to the need of Java 17, not being available:

Failed to apply plugin ‘com.android.internal.application’.
Android Gradle plugin requires Java 17 to run. You are currently using Java 11.
Your current JDK is located in /usr/lib/jvm/java-11-openjdk-amd64`

I would like to understand if I can apply a metadata change like it worked some time ago for Java11 (example below), or if it’s better to revert to the previous Gradle version:

- versionName: <version_name>
versionCode: <version_code>
commit: <commit_number>
subdir: android/API30
sudo:
- apt-get update
- apt-get install -y openjdk-17-jdk-headless
- update-alternatives --auto java
gradle:
- yes

Thanks in advance!

@Licaon_Kter maybe you have any advice?

Several needed 17 this cycle

I’ve updated some, presencepublisher - java17 (da4a17c3) · Commits · F-Droid / Data · GitLab

Thanks, issued the PR for my app.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.