#6.5 grasscutter compile error

9 messages · Page 1 of 1 (latest)

median ferry
#

"> Task :compileJava
D:...\LunaGC-6.5.0\src\main\java\emu\grasscutter\game\player\TeamManager.java:228: error: cannot find symbol
currentCharacter = this.getActiveTeam().getFirst();
^
symbol: method getFirst()
location: interface List<EntityAvatar>
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

Task :compileJava FAILED

FAILURE: Build failed with an exception."

6.1.0 compiles so I'm fairly sure I have all the dependencies, what could the problem be? For other "cannot find symbol" errors you've suggested the wrong protos or src files, but it seems to build without problems for others and I haven't modified any of the files (I did try to compile with some extra commands added initially, but I got the same error after removing them and running .\gradlew, .\gradlew jar again)

median ferry
#

I was using java 22, with 21 I get the same error

mortal cairn
#

that is why if you compile with 17 (standard for GC) it will fail there, but if you compile with java 21 (where getFirst() was added to list) then it will

median ferry
#

when i used java version before compiling it said java 21, is it using a previous version instead?

mortal cairn
#

if you're getting this specific exact error, you are most definitely compiling with java 20 or earlier

#

gradle should be using what you have set as JAVA_HOME but depends on what you're doing to compile

median ferry
#

Sorry about that, I thought installing a different version would update java home and path