Gradle Project Sync Failed Basic Functionality Intellij

I don t know how i got gradle 4 4 at all i only installed jdk 10 0 1 and intellij and tried to create a new gradle project.
Gradle project sync failed basic functionality intellij. Will not work properly. My gradle files are. I have searched the web and tried everything but nothing worked. In android studio i simply created a new project and it says that.
Gradle project sync failed. So what s the problem with this. Editing debugging will not work properly. Basic functionality will not work properly.
A fatal exception has occurred. Gradle project sync failed. But you already have gradle 4 4 and its wrapper it s a fresh installation of windows 10. Top level build file where you can add configuration options common to all sub projects modules.
Gradle project sync failed. Editing debugging will not work properly if i run build project i am getting this. As an android developer i believe gradle project sync failed error is the first error almost every developer get while creating their first project. Basic functionality e g editing debugging will not work properly or gradle myapp project refresh failed.
The problem is that gradle wont sync so the tasks mentioned in the guide isn t there. Gradle project sync failed. Editing debugging will not work properly.
Gradle project sync failed. If you have an idea of what causes this problem or if you have already encountered it please tell me what to do. The project assembles builds and tests properly from the command line.
Basic functionality will not work properly in the messages gradle sync i get. When i sync the gradle project it always says. Could not resolve all dependencies for configuration app debugapkcopy.