Failure": Build failed with an exception

So I’m a beginner, and started to code like this year. I’m busy setting up gradle but in the Command Prompt when I type gradle HelloWorld it shows FAILURE: Build failed with an exception
So I don’t know wants wrong. And also in Android Studios it says Failed to sync Gradle project... and in the messages it says unable to load class 'org.gradle.mvn3.org.sonatype.aether.resolution.ArtificialResolutionException
Please help, I really appreciate it!