android studio Error:Unable to start the daemon process

不羁岁月 提交于 2019-12-01 04:30:15

Im using Android studio version 2.2.2 on win 10 (32 bit) and this is how i fix this issue:

  1. Open your newly created project.
  2. Now open gradle.properties and change the JVM argument. i.e org.gradle.jvmargs=-Xmx1024m Basically it comes with default value of -Xm1536m which somehow is not working (at least for me).
  3. Then Rebuild the project and it should work.

add this line instead of following line in gradle.properties file

comment this line #org.gradle.jvmargs=-Xmx1536m

add this line

org.gradle.jvmargs=-Xmx512m -XX:MaxPermSize=512m

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

In your project file\platforms\android\cordova\lib\builders\GradleBuilder.js Search for args.push and search for the line with the below description. Mine was Xmx2048m. I changed to Xmx1024m and it worked. 16MB of RAM in my pc. Change

args.push('-Dorg.gradle.jvmargs=-Xmx1024m'); 
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!