which in turn is caused by the debian/patches/java11-compatibility.patch that introduces a patch to handle the missing unsafe features from OpenJDK 11 by using MethodHandles instead. Unfortunately this means that gradle won't work with OpenJDK 8 until this patch is reworked.
Thank you for taking the time to report this bug and helping to make Ubuntu better.
The important error in the log is:
Caused by: java.lang. NoSuchMethodErr or: invoke. MethodHandles. privateLookupIn (Ljava/ lang/Class; Ljava/lang/ invoke/ MethodHandles$ Lookup; )Ljava/ lang/invoke/ MethodHandles$ Lookup;
java.lang.
which in turn is caused by the debian/ patches/ java11- compatibility. patch that introduces a patch to handle the missing unsafe features from OpenJDK 11 by using MethodHandles instead. Unfortunately this means that gradle won't work with OpenJDK 8 until this patch is reworked.