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

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

    If any of the cases mentioned here didn't meet the expectations, there may be something wrong with your dnsapi.dll file in your windows which several software use (It happens in rare cases but give it a try).

    Close Android Studio and try running a program(software) that uses this dnsapi.dll file. For ex. try running BitTorrent. If it says 'DNSapi.dll missing from your computer', then the studio error is most probably because of the corrupted/missing dll file.

    Try running following command on your command prompt.(Make sure you have a good internet connection)

    DISM.exe /Online /Cleanup-image /Restorehealth
    

    And then run the system file checker.

    sfc /scannow
    

    It would take some time. Now run Android studio.

提交回复
热议问题