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

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

    I just followed the other answer but I couldn't find the registry.bin.lock file in mac, then I just deleted the following folders,'

    • /Users/../.gradle/caches

    • /Users/../.gradle/daemon

    then do a File-> Invalidate Caches/Restart. The above folders should be updated during Gradle Sync, just say yes if it throws popup for gradle update

    Please take a backup of these folders before deleting.

提交回复
热议问题