UE 4.27.2 Could not initialize class org.codehaus.groovy.reflection.ReflectionCache

Hi,

I am experiencing an old error that’s been solved previously which was to use an other version of JDK.
I’m using Unreal Engine 4.27.2 version, have a clean install of SDK and NDK and usig JDK v 17.0.2
If you have the solution that would be greatly appreciated, thank.

FAILURE: Build failed with an exception.
LogPlayLevel: * What went wrong:
LogPlayLevel: Could not initialize class org.codehaus.groovy.reflection.ReflectionCache

Try use Oracle JDK v8 pre 8u202 version.

1 Like