cirruslabs / macos-image-templates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Upgrade to temurin17

rgl opened this issue · comments

While trying to build an example android application from https://github.com/rgl/hello-world-kotlin-android, the build failed in cirrus due to the jdk version, it requires 17 but 11 is installed.

Here's the relevant log:

Welcome to Gradle 8.0!
For more details see https://docs.gradle.org/8.0/release-notes.html
Starting a Gradle Daemon (subsequent builds will be faster)
FAILURE: Build failed with an exception.
* Where:
Build file '/private/var/folders/dc/nt69f7cn7r5bgp90zkhs00000000gn/T/cirrus-ci-build/app/build.gradle' line: 2
* What went wrong:
An exception occurred applying plugin request [id: 'com.android.application']
> 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 /Library/Java/JavaVirtualMachines/temurin-11.jdk/Contents/Home
      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`.

JDK 17 is included starting with ghcr.io/cirruslabs/macos-ventura-xcode:15-beta image to minimize breaking things for people on Xcode 14.x.