Gradle sync failed: Cause: startup failed (Basic functionality not working)

3.9k Views Asked by At

It is my first time to use android studio V 3.1.3
when i finished installation and trying to build this error is shown

Error

it said that "Basic functioality not working correctly such as building and debugging "
i do not known how to solve it

i use a local gradle distribution like this
Trying this

Then press on sync project with gradles files
but this error is still shown.

It works well but after that this error is happened
Err

any help
Thanks in advance.

4

There are 4 best solutions below

1
On

Have you tried

Android studio -> File -> Invalidate Caches/Restart -> Invalidate and Restart
2
On

I also have the same problems as you,Now I have solved it.

The following are the steps to be solved

  1. Exit Android Studio.
  2. Delete the .gradle folder eg: C:\Users{userName}}.gradle
  3. Restart androidStudio and wait a moment.
0
On

Deleting the .gradle folder was unsuccessfull for me. Still waiting for another solution.

0
On

you should go to settings > build,execution,Deployment > build tool > gradle

and the change the user gradle home that to path of environment variable of JAVA-HOME Address Like this and then change gradle JDK to Embedded JDK it will solve your problem