Closed BarnabasSzabolcs closed 2 years ago
Hey, I wonder if you have different versions of Java or it was updated recently? You can try to do ./gradlew clean first and/or maybe ./gradlew --stop (to restart gradle daemon if it's up)
Hey Arysin, thanks for the quick answer!
If I type java -version
then it returns
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
I've tried ./gradlew clean && ./gradlew expand
with the same error.
It must be some java version incompatibility.
Can you please tell me what version should I install? (I also have Homebrew so brew install something would work me pretty good, too.)
Hey, you can try to install JDK11, technically jdk 8 reached end of life a year ago. It looks like Autogen class was compiled by jdk 11 for some reason and current java 8 fails to parse it. You can also try to delete .gradle/ and build/ folders manually. P.S. oh, I just realized I set java version 11 in the gadle so that's the best path to go
Hey, thanks for the advice!
It seems the following has to be done for mac:
brew install java11
JAVA_HOME=
./gradlew expand
and this gets to BUILD SUCCESSFUL message.