This issue is usually caused by the Java Internet Plug that Mac sometimes includes. Despite the Gradle script being hardcoded to use the provided JDK, it uses the internet plugin instead.
To fix this issue, go to Computer. Then Harddrive -> Library -> Go to Internet Plugins, and then delete the provided JavaAppletPlugin.
Download and install JDK from the link below:
Create a new project.
That should fix your issue.
If You Still Need Help
Reach out to support using the Chat Box in the lower right-hand corner.