This message was deleted.
# community-support
s
This message was deleted.
t
AdoptOpenJDK is discontinued (replaced by Adoptium) and doesn't provide aarch64 builds for macOS.
Which version of Gradle are you using?
j
I've tried 3 different versions and none worked
This is my first time setting up java and I just ran
Copy code
brew install openjdk
And let IntelliJ handle Gradle for me
Should I use a different JDK ?
I eventually found a temporary solution. Adding
Copy code
java {
    toolchain {
        languageVersion.set(JavaLanguageVersion.of(19))
    }
}
into my build.gradle and changing the
Copy code
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-bin.zip
fixed it. But I have to redo that on every project I load
t
There actually doesn't seem to be a JDK 8 for aarch64, even on Adoptium: https://adoptium.net/temurin/releases/?version=8 I'm not a macOS user and haven't followed the architecture changes there, even less their relationship with JDKs, so I'm afraid I can't help much more here; but blindly updating projects to JDK 19 (particularly from JDK 8!) and Gradle 8 will likely break a few of them (or in your case, not "fix" them).
j
I haven't used any projects. I was just setting up the default hello world and It wouldn't work until I made those changes