This message was deleted.
# community-support
s
This message was deleted.
c
unsupported class file version 63 indicates you are running Gradle (or some tool within) with an older Java version - upgrade to at least Java 18 (class file version 63).
a
So I must update to Java 18?
c
as noted, yes, something in your build is depending on at least that version of Java.
a
But Im using JAVA 19
c
Nope. Some component of that build is using pre-Java 18, hence the incompatibility. Unfamiliar with Android builds, you’ll have to track down which component is the problem.
a
it's Luxon.js
So then, I have to DOWNgrade, my java version?
c
There is some component of the build that requires at least Java 18 but is using < Java 18 - track that down and adjust accordingly.
a
and how do I track it down?
c
try running Gradle with --debug and start by analyzing the output.
a
you mean like.. yarn run gradle --debug?
c
no idea about that yarn stuff
a
it's almost the same as "npm"
v
There is some component of the build that requires at least Java 18 but is using < Java 18 - track that down and adjust accordingly.
Nope, it is him running Gradle 7.2 with Java 19 which is not supported.
❤️ 1
a
So I have to update my Gradle?
How do I do it?
v
Either use a newer Gradle version or an older - compatible - Java version to run it.
a
i prefer to upgrade gradle
how can I do it?
Im working with a team. If I upgrade gradle, it will affect all the branches of the repo? or is it something like only local for me?
v
If the project is sane, it contains the Gradle wrapper, so it will be for everyone.
a
so. in my case, it would be better to downgrade my java version?
v
The Gradle wrapper defines with which Gradle version a project is built so that there can be no incompatiblities due to different versions like in Maven.
so. in my case, it would be better to downgrade my java version?
How should we know? It is (almost) always good to update to latest versions. But if you don't want to, then yes you need to downgrade your Java.
a
yes, but as you said, upgrading Gradle could affect all the other branches if I do a git push... where as I assume grading my java version locally on my laptop, won't affect anybody else but me
that's why I mean it would be better to downgrade my java
Ok I've downgraded my JAVA version. Now let's see if this works
v
It will not affect other branches. It affects wherever you push it. If you only push it in one branch it only affects that branch like with any other code change.
But yeah, to only affect you, use a compatible Java version
a
yes of course, what I want is to not affect anybody else
👌 1