How set Gradle JVM settings in Android Studio 1.3 -


starting version 1.3, android studio no longer support ide-specific gradle jvm argument settings. gradle jvm settings need set in gradle.properties files. change necessary keep build output consistent, regardless of build executed (ide, command line or ci server.) if project using ide-specific gradle jvm arguments, android studio will, on project sync, copy settings project's gradle.properties file. "gradle vm options" text field in "gradle" settings page has been removed well.

i'm getting error:

error:unable start daemon process. problem might caused incorrect configuration of daemon. example, unrecognized jvm option used. please refer user guide chapter on daemon @     http://gradle.org/docs/2.4/userguide/gradle_daemon.html please read following process output find out more: ----------------------- error occurred during initialization of vm not reserve enough space object heap error: not create java virtual machine. error: fatal exception has occurred. program exit.   

my gradle.properties files

org.gradle.jvmargs=-xmx2048m -xx:maxpermsize=512m -xx:+heapdumponoutofmemoryerror -dfile.encoding=utf-8  org.gradle.parallel=true 

try changing jvmargs following

org.gradle.jvmargs=-xmx1024m -xx:maxpermsize=512m -xx:+heapdumponoutofmemoryerror -dfile.encoding=utf-8 

or smaller -xmx512m system not have enough memory create object heap , jvm.

you can add following option too:

 org.gradle.daemon=true 

for on macosx add following

-djava.awt.headless=true 

Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -