This problem arises from an incompatibility between the JDK and Gradle, specifically in the context of the M1 architecture. Despite the absence of a comprehensive solution available in the online, I have taken the initiative to provide a resolution b...