Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle 8 requires Java 17 #278

Closed
boldt opened this issue Jun 7, 2023 · 3 comments
Closed

Gradle 8 requires Java 17 #278

boldt opened this issue Jun 7, 2023 · 3 comments

Comments

@boldt
Copy link
Contributor

boldt commented Jun 7, 2023

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`.
@davidmartos96
Copy link
Contributor

@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

@fkorotkov
Copy link
Contributor

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

@davidmartos96
Copy link
Contributor

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

Great, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants