Gradle sync failed: The first result from the daemon was empty. Most likely the process died immediately after connection

前端 未结 12 1515
故里飘歌
故里飘歌 2021-01-02 04:23

I just recently downloaded an Android Studio and installed it on my PC. But When I try to set up my first project \"hello world\", it always brings up the following:

<
12条回答
  •  情歌与酒
    2021-01-02 04:25

    Today i faced the same problem.I got a solution.Hope this will be helpful.

    1.Just look gradle-wrapper.properties from project opened inside android studio. distributionUrl=https://services.gradle.org/distributions/gradle-2.10-all.zip

    2.Now to go C:\Users.gradle\wrapper\dists there you can see different gradle versions.Im my case i had a latest version gradle-2.11-all.

    3.Now go to android studio - File ->invalidate Cache/Restart 4.Now edit gradle-wrapper.properties and add latest version of gradle there.After updation my gradle-wrapper.properties looked like this.

    distributionBase=GRADLE_USER_HOME
    distributionPath=wrapper/dists
    zipStoreBase=GRADLE_USER_HOME
    zipStorePath=wrapper/dists
    distributionUrl=https\://services.gradle.org/distributions/gradle-2.11-all.zip
    

    Now Sync project. Thats it. Happy Coding Guys.Have a great day.

提交回复
热议问题