Version of Android Studio 2.2 OS version: Windows 10 Java JRE/JDK version: 1.8.0_51
Error:Unable to start the daemon process. This problem might be
Im using Android studio version 2.2.2 on win 10 (32 bit) and this is how i fix this issue:
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');
Try deleting your .gradle from C:\Users\<username>
directory and try again.
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