Android Studio: Unable to start the daemon process

后端 未结 18 1152
一整个雨季
一整个雨季 2020-11-28 06:43

I\'m facing the below error when I\'m trying to import a gradle project in Android Studio.

Unable to start the daemon process.
This problem might be caused b         


        
相关标签:
18条回答
  • 2020-11-28 07:13

    For me, in our work environment, we have Windows 7 64-bit with the machines locked down running McAfee with Host Intrusion turned on.

    I turned off Host Intrusion and gradle would finally work, so definitely, it appears to be issues with certain Virus scanners.

    UPDATE: Well I spoke too soon. Yes, I know longer get the "Unable to start the daemon process" message, but now I get the following:

    Error:Could not list versions using M2 pattern 'http://jcenter.bintray.com/[organisation]/[module]/[revision]/[artifact]-revision.[ext]'.

    0 讨论(0)
  • 2020-11-28 07:15
    Error:Unable to start the daemon process.
    

    This problem might be caused by incorrect configuration of the daemon. For example, an unrecognized JVM option is used.

    Please refer to the user guide chapter on the daemon at https://docs.gradle.org/3.3/userguide/gradle_daemon.html

    0 讨论(0)
  • 2020-11-28 07:16

    I also had same kind of issue. But managed to solve by Invalidate Cash.

    From File Menu - > Invalidate Caches/ Restart..

    It solved the problem for me.

    0 讨论(0)
  • 2020-11-28 07:17

    Try deleting your .gradle from C:\Users\<username> directory and try again.

    0 讨论(0)
  • 2020-11-28 07:17

    1.If You just open too much applications in Windows and make the Gradle have no enough memory in Ram to start the daemon process.So when you come across with this situation,you can just close some applications such as iTunes and so on. Then restart your android studio.

    2.File Menu - > Invalidate Caches/ Restart->Invalidate and Restart.

    0 讨论(0)
  • 2020-11-28 07:18

    If you are on mac try this :

    cd Users/<Your name> 
    

    Make sure that you are on the right path by looking for .gradle with

    ls -la
    

    then run that to delete .gradle

    rm -rf .gradle
    

    This will remove everything. Then launch your commande again and it will work !

    0 讨论(0)
提交回复
热议问题