UE5.3 & Android VR Nightmare

Sorted out the SDK and NDK issues, but my build process is still failing and the error that seems to be causing it is:

UATHelper: Packaging (Android (ASTC)): java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7

I currently have java 17.0.6 installed, do i need to install jdk 8 or 11 to fix this?

Unreal Engine version: 5.2.1
Building for: Quest 3