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!