Unreal 5.1 package project for Android error org.codehaus.groovy.vmplugin.v7.Java7 and java.lang.UnsupportedClassVersionError

thanks. that was truly helpful.
just in case, im using 5.2 and 5.3 and you can go down to sdk 29 (thank god, since htc vive has that as maximum).
i use ndk : android-29 and sdk “matchndk”
also ive been using ndk 25.1.89xxxx for a long time. i think that’ s the one listed in the android setup script so i left that one.
i found the jdk from here are easy to install, just unzip. wonderful for testing. Archived OpenJDK GA Releases
though the ideal is the sdk in the android/jre folder

i ran into this error when compiling in case someone else needs it

htc had some java libraries compiled for v 55 and but java in the android folder is 52.
i found with the previous post and this link that i could use version 11 How to check Java version used to compile a class | dev cases
and that solved my issueS. (god i wish android were simpler).