Godot android export fails with this error "compileDebugJavaWithJavac: FAILED"

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By turbo

Godot android export (Custom build with poing-studios/godot-admob-android) fails with this error

What went wrong:
Execution failed for task ‘:compileDebugJavaWithJavac’.
Could not resolve all files for configuration ‘:androidJdkImage’.
Failed to transform core-for-system-modules.jar to match attributes {artifactType=_internal_android_jdk_image, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.

Execution failed for JdkImageTransform: /media/turbo/softwares/apps/Android/Sdk/platforms/android-30/core-for-system-modules.jar.
jlink executable /app/jre/bin/jlink does not exist.