Android Studio: Unable to start the daemon process

后端 未结 18 1151
一整个雨季
一整个雨季 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:04

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

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

    Not sure this will fix the problem for everyone , But uninstalling java, java SDK and installing the latest version (Version 8) fixed the issue for me ..

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

    Steps to solve problem in android studio

    1. Click on file and select a other setting from dropdown menu and then select default setting.

    2. Select build,Execution,Deployment option.

    3. Select Compiler

    4. Here add a following line in Additional build process VM option

      -Xmx3072m -XX:MaxPermSize=524m as shown in below figure. 
      

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

    I have solve this problem by just deleting .gradle folder within my application project..

    Delete folder .gradle from your project no need to delete main .gradle folder which is located at C:\Users\<username>

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

    In Eclipse, go to windows -> preferences -> gradle->arguments. Find JVM Arguments choose from radio button "USE :" and write arguments -Xms128m -Xmx512m Then click button Apply

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

    Some ways of troubleshooting the Gradle daemon:

    • If you have a problem with your build, try temporarily disabling the daemon (you can pass the command line switch --no-daemon).
    • Occasionally, you may want to stop the daemons either via the --stop command line option or in a more forceful way.
    • There is a daemon log file, which by default is located in the Gradle user home directory.
    • You may want to start the daemon in --foreground mode to observe how the build is executed.
    0 讨论(0)
提交回复
热议问题