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

前端 未结 12 1550
故里飘歌
故里飘歌 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:35

    Guess what, I just faced this issue and I solved it. I did something very risky, but it looks like the fault is in the gradle cache directory. If you are using windows the dir. will be at C:\Users\username.....gradle\caches and deamon <- will be the directory where all the gradle versions are stored. Delete the latest particular version from the Cache as well as the Deamon folder. Next time your project syncs, AS will automatically generate the two files. Also
    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. From the above answer. This worked for me

提交回复
热议问题