skip to Main Content

I am facing the issue in build.gradle file in android studio while using flutter

I tried to upgrade the version to java 20 but now this is also not compatible with the build version

2

Answers


  1. Based on the Gradle compatibility docs, Java 20 and up is not yet supported.

    Login or Signup to reply.
  2. 8.1 can target Java 20, but not execute on Java 20. See the release notes here: https://docs.gradle.org/8.1/release-notes.html#jvm

    8.2 will have full Java 20 support. See the related issue here: https://github.com/gradle/gradle/issues/23488

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search