cirruslabs / docker-images-flutter

Docker Images for Flutter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gradle 8 requires Java 17

boldt opened this issue · comments

We bumped our project to Gradle 8, e.g., gradle-wrapper.properties to

classpath 'com.android.tools.build:gradle:8.0.2'

and build.gradle to:

distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-all.zip

We're using the image ghcr.io/cirruslabs/flutter:3.10.2 and it throws the following error:

  > 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
      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`.

@fkorotkov Thanks for merging! Can the flutter image push be triggered manually or is a PR needed?
Otherwise it would still be using the previous android-sdk image with Java 11

There is conveniently a new beta version. So I bumped it fae42bd

There is conveniently a new beta version. So I bumped it fae42bd

Great, thank you!